Skip to content

Commit 7e64569

Browse files
jescaladadgl
andauthored
Update src/proxy/processors/push-action/parsePush.ts
Co-authored-by: David Leadbeater <[email protected]>
1 parent 021e513 commit 7e64569

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/proxy/processors/push-action/parsePush.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ async function exec(req: any, action: Action): Promise<Action> {
6464

6565
const [oldCommit, newCommit, ref] = parts;
6666

67+
// Strip everything after NUL, which is cap-list from
68+
// https://git-scm.com/docs/http-protocol#_smart_server_response
6769
action.branch = ref.replace(/\0.*/, '').trim();
6870
action.setCommit(oldCommit, newCommit);
6971

0 commit comments

Comments
 (0)