[PATCH v3 2/3] fetch set_head: add warn-if-not-$branch option

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Bence Ferdinandy <bence@xxxxxxxxxxxxxx> wrote:

> @@ -1584,10 +1584,12 @@ static void set_head_advice_msg(const char *remote, const char *head_name)
>  	const char message_advice_set_head[] =
>  	N_("Run 'git remote set-head %s %s' to follow the change, or set\n"
>  	   "'remote.%s.followRemoteHEAD' configuration option to a different value\n"
> -	   "if you do not want to see this message.");
> +	   "if you do not want to see this message. Specifically running\n"
> +	   "'git config set remote.%s.followRemoteHEAD %s' will disable the warning\n"
> +	   "until the remote changes HEAD to something else.");
> 
>  	advise_if_enabled(ADVICE_FETCH_SET_HEAD_WARN, _(message_advice_set_head),
> -			remote, head_name, remote);
> +			remote, head_name, remote, remote, head_name);
> 

Seems like the config is unsupported to be feed a variable named "head_name"?

Thanks.





[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux