diff options
| author | mo khan <mo@mokhan.ca> | 2026-02-01 23:38:12 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2026-02-01 23:38:12 -0700 |
| commit | efa6cc8aec03939323b51ba0d1aeb3d15b45cca6 (patch) | |
| tree | 068c8de6efdee56e07b1926d42ee36f79994ea9e /internal/git | |
| parent | 47ad178927675f38cb9db54c6303306bb6348485 (diff) | |
fix: attempt to fix on bare repo
Diffstat (limited to 'internal/git')
| -rw-r--r-- | internal/git/git.go | 2 |
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 } |
