Created
August 11, 2014 20:44
-
-
Save scorphus/92380e75cc1ce194bacb to your computer and use it in GitHub Desktop.
bare.go
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 bare string | |
func bareLocation() string { | |
if bare != "" { | |
return bare | |
} | |
var err error | |
bare, err = config.GetString("git:bare:location") | |
if err != nil { | |
panic("You should configure a git:bare:location for gandalf.") | |
} | |
return bare | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment