summaryrefslogtreecommitdiffstats
path: root/builtin-reflog.c
diff options
context:
space:
mode:
authorBrandon Casey <casey@nrlssc.navy.mil>2008-01-05 02:11:37 +0100
committerJunio C Hamano <gitster@pobox.com>2008-01-05 02:22:24 +0100
commitcb97cc9fef60ea2ff1ce51cf575314c04488dbfd (patch)
tree5e88f0af614dacc33029fd983cab67f4dfc91176 /builtin-reflog.c
parentTeach "git reflog" a subcommand to delete single entries (diff)
downloadgit-cb97cc9fef60ea2ff1ce51cf575314c04488dbfd.tar.xz
git-cb97cc9fef60ea2ff1ce51cf575314c04488dbfd.zip
builtin-reflog.c: fix typo that accesses an unset variable
Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-reflog.c')
-rw-r--r--builtin-reflog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-reflog.c b/builtin-reflog.c
index f4226939a9..5e5498945f 100644
--- a/builtin-reflog.c
+++ b/builtin-reflog.c
@@ -394,7 +394,7 @@ static int cmd_reflog_delete(int argc, const char **argv, const char *prefix)
int recno;
if (!spec) {
- status |= error("Not a reflog: %s", ref);
+ status |= error("Not a reflog: %s", argv[i]);
continue;
}