We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f8ca82 commit 34b5b5fCopy full SHA for 34b5b5f
main.go
@@ -131,6 +131,19 @@ func main() {
131
return
132
}
133
134
+ // NOTE: exclude git commands to prevent weird errors
135
+ // _git:8182: bad math expression: operand expected at `/home/user/...'
136
137
+ // _git:8182: math recursion limit exceeded: name-rev
138
+ // _git:8182: bad math expression: operator expected at `browse'
139
+ if cmdName == "git" || strings.HasPrefix(cmdName, "git-") {
140
+ if isVerbose {
141
+ fmt.Printf("skipped git command: %s\n", fileName)
142
+ }
143
+ skippedNum++
144
+ return
145
146
+
147
srcFilePath := filepath.Join(srcDir, fileName)
148
srcFile, err := os.Open(filepath.Join(srcFilePath))
149
if err != nil {
0 commit comments