Have a constant extern refspec for "--tags"
[gitweb.git] / remote.c
index 2d9af4023eba6f8b2fe528ccbf03569fcaa265ee..9cb40afd0e3a4a35d9811ba48c5b08a0b39cf565 100644 (file)
--- a/remote.c
+++ b/remote.c
@@ -2,6 +2,15 @@
 #include "remote.h"
 #include "refs.h"
 
+static struct refspec s_tag_refspec = {
+       0,
+       1,
+       "refs/tags/",
+       "refs/tags/"
+};
+
+const struct refspec *tag_refspec = &s_tag_refspec;
+
 struct counted_string {
        size_t len;
        const char *s;