Created
February 28, 2014 16:23
-
-
Save supernullset/9274017 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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