Merge branch 'jk/fast-import-empty-ls'
[gitweb.git] / builtin / show-ref.c
index 099c2a45577166748ceb6438e3c4a838f4b3cba3..87806ad5b088f5c905757a4fab3c3499ec20a308 100644 (file)
@@ -106,7 +106,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;