Skip to content

Commit 1409b37

Browse files
committed
fix: use a string for unknown git pack file types
1 parent f9a3761 commit 1409b37

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

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

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -341,14 +341,7 @@ interface GitObjectHeader {
341341
baseSha?: Buffer;
342342
}
343343

344-
type GitObjectType =
345-
| 'commit'
346-
| 'tree'
347-
| 'blob'
348-
| 'tag'
349-
| 'ofs_delta'
350-
| 'ref_delta'
351-
| unknown;
344+
type GitObjectType = 'commit' | 'tree' | 'blob' | 'tag' | 'ofs_delta' | 'ref_delta' | 'unknown';
352345

353346
/**
354347
* Maps Git object type codes to human-readable names.

0 commit comments

Comments
 (0)