Skip to content

Commit c6551f9

Browse files
committed
fix: resolve git push failure in CI for UpdateTap test
Use explicit HEAD refspec when pushing to bare repo in test setup, avoiding failure when no upstream branch is configured.
1 parent 1b89bee commit c6551f9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/dots/git_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ func TestFsRepo_UpdateTap_Pulls(t *testing.T) {
216216
))
217217
run(t, work, "git", "add", "-A")
218218
run(t, work, "git", "commit", "-m", "add vim")
219-
run(t, work, "git", "push", bare)
219+
run(t, work, "git", "push", bare, "HEAD")
220220

221221
// Update should pull the new content
222222
err = repo.UpdateTap(ctx, "personal")

0 commit comments

Comments
 (0)