rename all these damn things from the past
This commit is contained in:
parent
d493a55cfa
commit
5d2daf75c0
|
@ -102,6 +102,10 @@ func rillCheckoutUser(repo *gitpb.Repo) error {
|
||||||
// never do dirty repos
|
// never do dirty repos
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
if repo.GetCurrentBranchName() == repo.GetDevelBranchName() {
|
||||||
|
// repo is already on devel branch. have to move them there first for now
|
||||||
|
return rillCheckoutDevel(repo)
|
||||||
|
}
|
||||||
if repo.GetCurrentBranchName() == repo.GetUserBranchName() {
|
if repo.GetCurrentBranchName() == repo.GetUserBranchName() {
|
||||||
// repo is already on user branch
|
// repo is already on user branch
|
||||||
return nil
|
return nil
|
||||||
|
|
|
@ -100,7 +100,7 @@ func checkhashes(repo *gitpb.Repo, hashes []string, refpath string) ([]string, e
|
||||||
if !repo.Exists(refpath) {
|
if !repo.Exists(refpath) {
|
||||||
return hashes, nil
|
return hashes, nil
|
||||||
}
|
}
|
||||||
r, err := repo.RunStrictNew([]string{"cat", refpath})
|
r, err := repo.RunStrict([]string{"cat", refpath})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return hashes, err
|
return hashes, err
|
||||||
}
|
}
|
||||||
|
@ -535,7 +535,7 @@ func isBranchSubsetOfTrunk(repo *gitpb.Repo, branch string, trunk string) error
|
||||||
// if zero, that means branch1 is entirely contained in branch2 and can be safely deleted
|
// if zero, that means branch1 is entirely contained in branch2 and can be safely deleted
|
||||||
func countGitDiffLog(repo *gitpb.Repo, branch1, branch2 string) int {
|
func countGitDiffLog(repo *gitpb.Repo, branch1, branch2 string) int {
|
||||||
cmd := repo.ConstructGitDiffLog(branch1, branch2)
|
cmd := repo.ConstructGitDiffLog(branch1, branch2)
|
||||||
r, err := repo.RunStrictNew(cmd)
|
r, err := repo.RunStrict(cmd)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return -1
|
return -1
|
||||||
}
|
}
|
||||||
|
|
2
main.go
2
main.go
|
@ -31,7 +31,7 @@ var configSave bool
|
||||||
|
|
||||||
func getVersion(repo *gitpb.Repo, name string) string {
|
func getVersion(repo *gitpb.Repo, name string) string {
|
||||||
cmd := []string{"git", "describe", "--tags", "--always", name}
|
cmd := []string{"git", "describe", "--tags", "--always", name}
|
||||||
result := repo.RunQuiet(cmd)
|
result, _ := repo.RunQuiet(cmd)
|
||||||
output := strings.Join(result.Stdout, "\n")
|
output := strings.Join(result.Stdout, "\n")
|
||||||
log.Info("cmd =", cmd, output)
|
log.Info("cmd =", cmd, output)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue