Skip to content

Instantly share code, notes, and snippets.

@supernullset
Created February 28, 2014 16:23
Show Gist options
  • Save supernullset/9274017 to your computer and use it in GitHub Desktop.
Save supernullset/9274017 to your computer and use it in GitHub Desktop.
var repo_prefixes = []string{"git://","git@","http://","https://","ssh://"}
func (r *Repo) isGitImproved() bool {
for _,prefix := range repo_prefixes {
if strings.HasPrefix(r.Path, prefix) { return true }
}
return false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment