summaryrefslogtreecommitdiff
path: root/internal/git/git.go
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2026-02-01 23:38:12 -0700
committermo khan <mo@mokhan.ca>2026-02-01 23:38:12 -0700
commitefa6cc8aec03939323b51ba0d1aeb3d15b45cca6 (patch)
tree068c8de6efdee56e07b1926d42ee36f79994ea9e /internal/git/git.go
parent47ad178927675f38cb9db54c6303306bb6348485 (diff)
fix: attempt to fix on bare repo
Diffstat (limited to 'internal/git/git.go')
-rw-r--r--internal/git/git.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/git/git.go b/internal/git/git.go
index b835a6c..97806d0 100644
--- a/internal/git/git.go
+++ b/internal/git/git.go
@@ -27,7 +27,7 @@ func gitCmd(repoDir string, args ...string) ([]byte, error) {
}
func RefExists(ref, repoDir string) bool {
- _, err := gitCmd(repoDir, "rev-parse", "--verify", "--quiet", ref)
+ _, err := gitCmd(repoDir, "rev-parse", "--verify", "--quiet", ref+"^{commit}")
return err == nil
}