[PR #21] [hot] Fix git push rewrite #208

Closed
opened 2026-03-02 04:12:57 +03:00 by kerem · 0 comments
Owner

Original Pull Request: https://github.com/git-ai-project/git-ai/pull/21

State: closed
Merged: Yes


User reported git-ai push rewrtie was syncing stale branches.
PNG image

The PR updates the push rewrite to independently passthrough the push command w/o rewriting it, and then silently sync git-ai refs with a separate push innovation immediately after.

Why this approach: Git push doesn't support appending ref specs when overriding the default behavior; you have to specify all the ref specs you want to sync. It's difficult and flaky to try to infer this so let's not try.

**Original Pull Request:** https://github.com/git-ai-project/git-ai/pull/21 **State:** closed **Merged:** Yes --- User reported `git-ai push` rewrtie was syncing stale branches. ![PNG image](https://github.com/user-attachments/assets/756aec24-b918-4fd1-b0e1-bb9dc9f325f1) The PR updates the push rewrite to independently passthrough the push command w/o rewriting it, and then silently sync git-ai refs with a separate `push` innovation immediately after. Why this approach: Git push doesn't support appending ref specs when overriding the default behavior; you have to specify all the ref specs you want to sync. It's difficult and flaky to try to infer this so let's not try.
kerem 2026-03-02 04:12:57 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/git-ai#208
No description provided.