diff options
Diffstat (limited to 'bitbake/bin/git-make-shallow')
-rwxr-xr-x | bitbake/bin/git-make-shallow | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/bin/git-make-shallow b/bitbake/bin/git-make-shallow index 9de557c10e..e6c180b4d6 100755 --- a/bitbake/bin/git-make-shallow +++ b/bitbake/bin/git-make-shallow | |||
@@ -115,8 +115,8 @@ def filter_refs(refs): | |||
115 | all_refs = get_all_refs() | 115 | all_refs = get_all_refs() |
116 | to_remove = set(all_refs) - set(refs) | 116 | to_remove = set(all_refs) - set(refs) |
117 | if to_remove: | 117 | if to_remove: |
118 | check_output(['xargs', '-0', '-n', '1'] + git_cmd + ['update-ref', '-d', '--no-deref'], | 118 | check_output(git_cmd + ['update-ref', '--no-deref', '--stdin', '-z'], |
119 | input=''.join(l + '\0' for l in to_remove)) | 119 | input=''.join('delete ' + l + '\0\0' for l in to_remove)) |
120 | 120 | ||
121 | 121 | ||
122 | def follow_history_intersections(revisions, refs): | 122 | def follow_history_intersections(revisions, refs): |