Use git-update-ref to delete a tag instead of rm()ing the ref file.
[gitweb.git] / wt-status.c
index 050922df54de483cf7112aeb397fc555e4eb2310..d8e284c311cb480f77085b0ba563cfa999920a43 100644 (file)
@@ -41,7 +41,7 @@ void wt_status_prepare(struct wt_status *s)
 
        s->is_initial = get_sha1("HEAD", sha1) ? 1 : 0;
 
-       head = resolve_ref("HEAD", sha1, 0);
+       head = resolve_ref("HEAD", sha1, 0, NULL);
        s->branch = head ? xstrdup(head) : NULL;
 
        s->reference = "HEAD";