X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin-reflog.c;h=ce093cad78ce8008cd8a60d3ab6be5663a712a9d;hb=7fd53fce1c574f6a4940eedf36383a4e9ed7ae6a;hp=4c39f1da98e5e690f28f5145a1ab5dba790da68d;hpb=53a58245863eff3d70aaa3ac75d7d57e843fc91d;p=git.git diff --git a/builtin-reflog.c b/builtin-reflog.c index 4c39f1da9..ce093cad7 100644 --- a/builtin-reflog.c +++ b/builtin-reflog.c @@ -249,7 +249,7 @@ static int expire_reflog(const char *ref, const unsigned char *sha1, int unused, /* we take the lock for the ref itself to prevent it from * getting updated. */ - lock = lock_any_ref_for_update(ref, sha1); + lock = lock_any_ref_for_update(ref, sha1, 0); if (!lock) return error("cannot lock ref '%s'", ref); log_file = xstrdup(git_path("logs/%s", ref));