diff options
Diffstat (limited to 'git.go')
| -rw-r--r-- | git.go | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -4,8 +4,8 @@ import ( "strings" "unicode/utf8" - "io/ioutil" "go.wit.com/log" + "io/ioutil" ) func (rs *RepoStatus) GetPath() string { @@ -133,8 +133,8 @@ func (rs *RepoStatus) checkoutBranch(level string, branch string) { log.Warn("checkoutBranch() checkDirty() == true for repo", rs.repopath, "looking for branch:", branch) return } - out := run(rs.repopath, "git", "checkout " + branch) - log.Warn(rs.repopath, "git checkout " + branch, "returned", out) + out := run(rs.repopath, "git", "checkout "+branch) + log.Warn(rs.repopath, "git checkout "+branch, "returned", out) realname := rs.getCurrentBranchName() realversion := rs.getCurrentBranchVersion() @@ -232,7 +232,7 @@ func (rs *RepoStatus) CheckBranches() bool { } var cmd []string cmd = append(cmd, "git", "show", "-s", "--format=%ci", hash) - _, _, output := RunCmd("/home/jcarr/go/src/" + rs.repopath, cmd) + _, _, output := RunCmd("/home/jcarr/go/src/"+rs.repopath, cmd) // git show -s --format=%ci <hash> will give you the time // log.Warn(fullfile) if hash == hashCheck { |
