Commit 74f1fd8c authored by Oswald Buddenhagen's avatar Oswald Buddenhagen Committed by Oswald Buddenhagen
Browse files

use git-fetch --prune


otherwise dead mainlines accumulate, as for example when we changed
branching schemes.

Change-Id: Ia5bcb90a079dc62c3c848d139cef5f6d6e0ccbba
Reviewed-by: default avatarOrgad Shaneh <orgads@gmail.com>
parent 7f15a37d
No related merge requests found
Showing with 1 addition and 1 deletion
......@@ -128,7 +128,7 @@ sub process_commit($$$$$)
chomp(@mainlines = `git config remote.origin.fetch`);
$skipfetch{$project} = 1;
}
if (system("git", "fetch", "-f", "origin", $ref.":refs/changes/".$number, @mainlines)) {
if (system("git", "fetch", "-f", "--prune", "origin", $ref.":refs/changes/".$number, @mainlines)) {
printerr "GIT fetch of ".$ref." from ".$project." failed";
return;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment