Skip to content

Commit

Permalink
git/branch: don't clobber variable in merge1 argument
Browse files Browse the repository at this point in the history
When doing a merge on branch switch, we would use 'base'
as the base commmit and later override it with the merge
ancestor of the commit, fucking up the paths.

Rename the variable so we don't clobber it.
  • Loading branch information
oridb committed Apr 30, 2021
1 parent f188c2a commit ca837be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions branch
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ for(m in $cleanpaths){
}
for(ours in $dirtypaths){
base=/mnt/git/object/$orig/tree/$ours
common=/mnt/git/object/$orig/tree/$ours
theirs=/mnt/git/object/$base/tree/$ours
merge1 $ours $ours $base $theirs
merge1 $ours $ours $common $theirs
}
if(! ~ $#deleted 0){
Expand Down

0 comments on commit ca837be

Please sign in to comment.