Commit 2c20403c authored by Lukas Fleischer's avatar Lukas Fleischer
Browse files

git-update: Use proper stop value for slice

Fixes a regression introduced in 4112e572

 (Add a restore command to the
SSH interface, 2015-08-14).

Signed-off-by: Lukas Fleischer's avatarLukas Fleischer <lfleischer@archlinux.org>
parent 34e7f708
......@@ -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")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment