summaryrefslogtreecommitdiff
path: root/branches.go
diff options
context:
space:
mode:
Diffstat (limited to 'branches.go')
-rw-r--r--branches.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/branches.go b/branches.go
index e6d0570..192e4e3 100644
--- a/branches.go
+++ b/branches.go
@@ -40,6 +40,10 @@ func (repo *Repo) ExistsUserBranch() bool {
// todo: actually use .git/config
return true
}
+ if repo.Exists(filepath.Join(".git/refs/remote/origin", branchname)) {
+ // todo: actually use .git/config
+ return true
+ }
return false
}
@@ -53,6 +57,10 @@ func (repo *Repo) ExistsDevelBranch() bool {
// todo: actually use .git/config
return true
}
+ if repo.Exists(filepath.Join(".git/refs/remote/origin", branchname)) {
+ // todo: actually use .git/config
+ return true
+ }
return false
}