refspec: convert valid_fetch_refspec to use parse_refspec
[gitweb.git] / builtin / pull.c
index e32d6cd5b4c999bc45b961c1387af066c72a823a..5a79deae5d1a1298139522543ed255d439648183 100644 (file)
@@ -9,12 +9,13 @@
 #include "config.h"
 #include "builtin.h"
 #include "parse-options.h"
-#include "exec_cmd.h"
+#include "exec-cmd.h"
 #include "run-command.h"
 #include "sha1-array.h"
 #include "remote.h"
 #include "dir.h"
 #include "refs.h"
+#include "refspec.h"
 #include "revision.h"
 #include "submodule.h"
 #include "submodule-config.h"
@@ -675,7 +676,7 @@ static const char *get_upstream_branch(const char *remote)
  */
 static const char *get_tracking_branch(const char *remote, const char *refspec)
 {
-       struct refspec *spec;
+       struct refspec_item *spec;
        const char *spec_src;
        const char *merge_branch;