Skip to content

Commit

Permalink
[PATCH] Adjust git-merge-recursive.py for the new tool names.
Browse files Browse the repository at this point in the history
Signed-off-by: Fredrik Kuivinen <freku045@student.liu.se>
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Fredrik Kuivinen authored and Junio C Hamano committed Sep 13, 2005
1 parent 0d214b6 commit 87a71b6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions git-merge-recursive.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def infoMsg(*args):
if callDepth == 0:
if len(ca) > 1:
runProgram(['git-read-tree', h1.tree()])
runProgram(['git-update-cache', '-q', '--refresh'])
runProgram(['git-update-index', '-q', '--refresh'])
# Use the original index if we only have one common ancestor

cleanCache = False
Expand Down Expand Up @@ -205,14 +205,14 @@ def updateFile(clean, sha, mode, path, onlyWd=False):
assert(False)

if updateWd and updateCache:
runProgram(['git-update-cache', '--add', '--', path])
runProgram(['git-update-index', '--add', '--', path])
elif updateCache:
runProgram(['git-update-cache', '--add', '--cacheinfo',
runProgram(['git-update-index', '--add', '--cacheinfo',
'0%o' % mode, sha, path])

def removeFile(clean, path):
if cleanCache or (not cleanCache and clean):
runProgram(['git-update-cache', '--force-remove', '--', path])
runProgram(['git-update-index', '--force-remove', '--', path])

if not cleanCache and clean:
try:
Expand Down

0 comments on commit 87a71b6

Please sign in to comment.