INNER CODE UNIT · Go
argsWithoutProg
chriswalz/bit · main.go:44
argsWithoutProg = append(argsWithoutProg[:debugIndex], argsWithoutProg[debugIndex+1:]...)
}
// verify is git repo
if len(os.Args) >= 2 {
if os.Args[1] == "--version" || os.Args[1] == "version" {
fmt.Println("bit version " + version)
bitcmd.PrintGitVersion()
return
}
}
if !bitcmd.IsGitRepo() {
if len(os.Args) >= 2 && (os.Args[1] == "update" || os.Args[1] == "clone" || os.Args[1] == "complete" || os.Args[1] == "init" || os.Args[1] == "send-email" || os.Args[1] == "svn" || os.Args[1] == "config" || os.Args[1] == "bugreport") {
// do nothing here, proceed to update path
} else {
fmt.Println("fatal: not a git repository (or any of the parent directories): .git")
return
}