[aur-dev] [PATCH] git-update: Use proper stop value for slice
Lukas Fleischer
lfleischer at archlinux.org
Wed Sep 16 20:10:48 UTC 2015
Fixes a regression introduced in 4112e57 (Add a restore command to the
SSH interface, 2015-08-14).
Signed-off-by: Lukas Fleischer <lfleischer at archlinux.org>
---
git-interface/git-update.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/git-interface/git-update.py b/git-interface/git-update.py
index 5ff8b28..4698382 100755
--- a/git-interface/git-update.py
+++ b/git-interface/git-update.py
@@ -188,7 +188,7 @@ if len(sys.argv) == 2 and sys.argv[1] == "restore":
refname = "refs/heads/master"
sha1_old = sha1_new = repo.lookup_reference('refs/heads/' + pkgbase).target
elif len(sys.argv) == 4:
- refname, sha1_old, sha1_new = sys.argv[1:3]
+ refname, sha1_old, sha1_new = sys.argv[1:4]
else:
die("invalid arguments")
--
2.5.2
More information about the aur-dev
mailing list