Merge branch 'rr/am-quit-empty-then-abort-fix'
[gitweb.git] / builtin / show-ref.c
index 8d9b76a02fd115c0285216c27c5232f345d0582d..4a0310da371cfc851bf1d9b763a927764be68476 100644 (file)
@@ -103,7 +103,7 @@ static int add_existing(const char *refname, const unsigned char *sha1, int flag
  */
 static int exclude_existing(const char *match)
 {
-       static struct string_list existing_refs = STRING_LIST_INIT_NODUP;
+       static struct string_list existing_refs = STRING_LIST_INIT_DUP;
        char buf[1024];
        int matchlen = match ? strlen(match) : 0;