summaryrefslogtreecommitdiff
path: root/branches.go
diff options
context:
space:
mode:
Diffstat (limited to 'branches.go')
-rw-r--r--branches.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/branches.go b/branches.go
index 490fd16..7b256bb 100644
--- a/branches.go
+++ b/branches.go
@@ -85,7 +85,10 @@ func (repo *Repo) DeleteLocalDevelBranch() error {
return fmt.Errorf("no remote branch")
}
- b1 := repo.CountDiffObjects(branch, remote) // should be zero
+ b1, err := repo.CountDiffObjects(branch, remote) // should be zero
+ if err != nil {
+ return err
+ }
if b1 == 0 {
cmd := []string{"git", "branch", "-D", repo.GetDevelBranchName()}
_, err := repo.RunVerboseOnError(cmd)