summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLuis R. Rodriguez <mcgrof@do-not-panic.com>2014-04-02 10:44:42 +0000
committerLuis R. Rodriguez <mcgrof@do-not-panic.com>2014-04-08 18:16:21 -0700
commitc723126011159cd18b9646e283f58bb4e79abf50 (patch)
treeb9afd0a7681e076fc5cebcc3ceedb2cf7ba56247 /lib
parent6cbe2f38aad6868562d1c4724533f104ce67b371 (diff)
backports: use --ignore-removal for git add
As of git 2.0 --ignore-removal is no longer default so just make it default tool, without which git will warn us about this change. Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/bpgit.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bpgit.py b/lib/bpgit.py
index 15089d74..f56e377a 100644
--- a/lib/bpgit.py
+++ b/lib/bpgit.py
@@ -142,7 +142,7 @@ def init(tree=None):
_check(process)
def add(path, tree=None):
- process = subprocess.Popen(['git', 'add', path],
+ process = subprocess.Popen(['git', 'add', '--ignore-removal', path],
stdout=subprocess.PIPE, stderr=subprocess.STDOUT,
close_fds=True, universal_newlines=True, cwd=tree)
stdout = process.communicate()[0]
@@ -266,7 +266,7 @@ def ls_remote(branch, tree=None, remote='origin'):
return sha
def add(fn, tree=None):
- process = subprocess.Popen(['git', 'add', fn], cwd=tree,
+ process = subprocess.Popen(['git', 'add', '--ignore-removal', fn], cwd=tree,
close_fds=True, universal_newlines=True)
process.wait()
_check(process)