diff options
author | Lukas Fleischer <lfleischer@archlinux.org> | 2015-09-16 22:07:59 +0200 |
---|---|---|
committer | Lukas Fleischer <lfleischer@archlinux.org> | 2015-09-16 22:10:06 +0200 |
commit | 2c20403cc4e7f788b04afbf7adda6e96e3cfcf27 (patch) | |
tree | eb243d84a303287d82d5c2965dc9d3cc420631cb /git-interface/git-update.py | |
parent | 34e7f7084ae30cd2cb50edfef5ff14f3a311e11a (diff) | |
download | aur-2c20403cc4e7f788b04afbf7adda6e96e3cfcf27.tar.gz aur-2c20403cc4e7f788b04afbf7adda6e96e3cfcf27.tar.xz |
git-update: Use proper stop value for slice
Fixes a regression introduced in 4112e57 (Add a restore command to the
SSH interface, 2015-08-14).
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
Diffstat (limited to 'git-interface/git-update.py')
-rwxr-xr-x | git-interface/git-update.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-interface/git-update.py b/git-interface/git-update.py index 5ff8b285..4698382d 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") |