Merge branch 'jt/clone-guess-remote-head-fix'
"git clone" still gave the message about the default branch name; this message has been turned into an advice message that can be turned off. * jt/clone-guess-remote-head-fix: advice: allow disabling default branch name advice builtin/clone: suppress unexpected default branch advice remote: allow `guess_remote_head()` to suppress advice
This commit is contained in:
@@ -1638,7 +1638,7 @@ static int set_head(const struct ref *remote_refs, struct remote *remote)
|
||||
|
||||
get_fetch_map(remote_refs, &refspec, &fetch_map_tail, 0);
|
||||
matches = guess_remote_head(find_ref_by_name(remote_refs, "HEAD"),
|
||||
fetch_map, 1);
|
||||
fetch_map, REMOTE_GUESS_HEAD_ALL);
|
||||
for (ref = matches; ref; ref = ref->next) {
|
||||
string_list_append(&heads, strip_refshead(ref->name));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user