git p4: Use git diff-tree instead of format-patch
[gitweb.git] / branch.c
index c5c6984cb5266c27d3c13aa6e6aacaab56e112c0..2d15c19e3e8d5d2ae317d0cb0e06a35ea8f5745e 100644 (file)
--- a/branch.c
+++ b/branch.c
@@ -203,8 +203,7 @@ static int check_tracking_branch(struct remote *remote, void *cb_data)
        struct refspec query;
        memset(&query, 0, sizeof(struct refspec));
        query.dst = tracking_branch;
-       return !(remote_find_tracking(remote, &query) ||
-                prefixcmp(query.src, "refs/heads/"));
+       return !remote_find_tracking(remote, &query);
 }
 
 static int validate_remote_tracking_branch(char *ref)