Get base also correctly on windows #2

Merged
nightlyone merged 1 commits from fix_windows into master 2015-08-23 00:20:45 +02:00

View File

@ -11,7 +11,7 @@ import (
func main() {
gitroot, _ := filepath.Abs(filepath.Dir(general.GetGitRoot()))
hookBase := filepath.Base(os.Args[0])
hookBase := strings.TrimSuffix(filepath.Base(os.Args[0]), filepath.Ext(os.Args[0]))
hookPrefix := fmt.Sprintf("%s_", hookBase)
os.Chdir(gitroot)