def git_archive_pipe(prefix, pipe, output, treeish):
"""run the git_archive pipe"""
- pipe.prepend('git-archive --format=tar --prefix=%s/ %s' % (prefix, treeish), '.-')
+ pipe.prepend('git archive --format=tar --prefix=%s/ %s' % (prefix, treeish), '.-')
try:
ret = pipe.copy('', output)
if ret:
def head_commit():
"""get the full sha1 of the last commit on HEAD"""
- commit = subprocess.Popen([ 'git-log', 'HEAD^..' ], stdout=subprocess.PIPE).stdout
+ commit = subprocess.Popen([ 'git', 'log', 'HEAD^..' ], stdout=subprocess.PIPE).stdout
sha = commit.readline().split()[-1]
return sha
def git_apply_patch(diff):
- "Import patch via git-apply"
+ "Import patch via git apply"
pipe = pipes.Template()
pipe.prepend('gunzip -c %s' % diff, '.-')
- pipe.append('git-apply --index --apply --whitespace=nowarn -', '-.')
+ pipe.append('git apply --index --apply --whitespace=nowarn -', '-.')
try:
ret = pipe.copy('', '')
if ret: