mailinfo: accept >From in message header
PATCH 1/1 mailinfo: accept >From in message header
Hi!
Mail I get sometimes has multiple From lines, like this:
Quoted 2 lines
From [email protected] Thu Jul 27 16:39:36 2006 From mtsirkin Thu Jul 27 16:39:36 2006
Received: from yok.mtl.com [10.0.8.11]
....
which confuses git-mailinfo since that does not recognize >From as a valid header line. The following patch makes git-applymbox work for me:
---
Recognize >From XXX as a valid header line.
builtin-mailinfo.c +1 -1
@@ -446,7 +446,7 @@ static int read_one_header_line(char *libreak ; }/* Count mbox From headers as headers */ -if (!ofs && !memcmp (line,"From " ,5 )) +if (!ofs && (!memcmp (line,"From " ,5 ) || !memcmp (line,">From " ,6 ))) ofs =1 ;return ofs; }
Signature · 1 line
MST
Quoted 8 lines · Michael S. Tsirkin
From [email protected] Thu Jul 27 16:39:36 2006
Quoted 1 line
From mtsirkin Thu Jul 27 16:39:36 2006
Received: from yok.mtl.com [10.0.8.11]
....which confuses git-mailinfo since that does not recognize >From as a valid header line. The following patch makes git-applymbox work for me:
Wouldn't that kind of breakage confuse git-mailsplit as well?
Quoting r. Junio C Hamano <[email protected]>:
Quoted 6 lines
Subject: Re: [PATCH] mailinfo: accept >From in message header
Quoted 2 lines · Michael S. Tsirkin
From [email protected] Thu Jul 27 16:39:36 2006
Quoted 1 line
From mtsirkin Thu Jul 27 16:39:36 2006
Quoted 9 lines
Quoted 6 lines
Received: from yok.mtl.com [10.0.8.11]
....which confuses git-mailinfo since that does not recognize >From as a valid header line. The following patch makes git-applymbox work for me:
Wouldn't that kind of breakage confuse git-mailsplit as well?
Hmm - I normally don't use it - just pipe stiff from mutt into git-applymbox. A quick test seems to indicate git-mailsplit works fine.
But why should it - mailsplit just needs ^From to match new mail, correct? So the escaped >From is good for it.
Signature · 1 line
MST
Multiple pulls from the same branch in .git/remotes/origin
In reply to Michael S. TsirkinHi, all!
I have
Quoted 1 line
git --version
git version 1.4.2.rc3.g0d95
and I have put the following in .git/remotes/origin
Quoted 1 line
cat .git/remotes/origin
URL: ssh://mst@frodo/scm/git/linux-2.6
Pull: refs/heads/linus_master:refs/heads/origin
Pull: refs/heads/linus_master:refs/heads/linus_master_branch
now I get:
Quoted 1 line
git fetch origin
error: no such remote ref refs/heads/linus_master
Fetch failure: ssh://mst@frodo/scm/git/linux-2.6
However, if I remove the second line, like this:
Quoted 1 line
cat .git/remotes/origin
URL: ssh://mst@frodo/scm/git/linux-2.6
Pull: refs/heads/linus_master:refs/heads/origin
I get remote linus_master properly fetched into local origin. Two questions:
1. Isn't is possible to pull from the same remote branch into multiple local branches?
2. Even if not, isn't the error message above a bit strange? After all, the remote branch *does* exist.
Thanks,
Signature · 1 line
MST
Re: Multiple pulls from the same branch in .git/remotes/origin
Quoted 5 lines · Michael S. Tsirkin
I get remote
linus_masterproperly fetched into local origin. Two questions:1. Isn't is possible to pull from the same remote branch into multiple local branches?
Currently, no. The underlying git-fetch-pack makes sure you do not give the same branches twice on the command line. I think what the code actually tries to do is to make sure each of the given refspecs is not ambiguous and matches something, but while doing so it marks the remote ref that matched ineligible to match again, which ends up showing the error message you saw.
It might not be too difficult to change it though. This part of the code is relatively old and I do not remember the details offhand, other than I remember that the first time I saw it I had the same confused "Huh? we do not let a ref fetched twice?" reaction ;-).
Re: Multiple pulls from the same branch in .git/remotes/origin
Quoting r. Junio C Hamano <[email protected]>:
Quoted 17 lines
Subject: Re: Multiple pulls from the same branch in .git/remotes/origin
Quoted 5 lines · Michael S. Tsirkin
I get remote
linus_masterproperly fetched into local origin. Two questions:1. Isn't is possible to pull from the same remote branch into multiple local branches?
Currently, no. The underlying git-fetch-pack makes sure you do not give the same branches twice on the command line. I think what the code actually tries to do is to make sure each of the given refspecs is not ambiguous and matches something, but while doing so it marks the remote ref that matched ineligible to match again, which ends up showing the error message you saw.
Quoted 5 lines
It might not be too difficult to change it though. This part of the code is relatively old and I do not remember the details offhand, other than I remember that the first time I saw it I had the same confused "Huh? we do not let a ref fetched twice?" reaction ;-).
At least, fix the error message?
Signature · 1 line
MST
Re: Multiple pulls from the same branch in .git/remotes/origin
Quoted 7 lines · Michael S. Tsirkin
Quoted 5 lines
It might not be too difficult to change it though. This part of the code is relatively old and I do not remember the details offhand, other than I remember that the first time I saw it I had the same confused "Huh? we do not let a ref fetched twice?" reaction ;-).
At least, fix the error message?
That would touch the same vicinity of code so if I were to do that myself I would rather see if the restriction can be loosened properly first.
Re: Multiple pulls from the same branch in .git/remotes/origin
Quoting r. Junio C Hamano <[email protected]>:
Quoted 10 lines
Subject: Re: Multiple pulls from the same branch in .git/remotes/origin
Quoted 6 lines · Michael S. Tsirkin
Quoted 5 lines
It might not be too difficult to change it though. This part of the code is relatively old and I do not remember the details offhand, other than I remember that the first time I saw it I had the same confused "Huh? we do not let a ref fetched twice?" reaction ;-).
Quoted 5 lines
Quoted 1 line
At least, fix the error message?
That would touch the same vicinity of code so if I were to do that myself I would rather see if the restriction can be loosened properly first.
It seems that have to make path_match in connect.c return an array of indexes for that to work. Right?
Signature · 1 line
MST
Re: Multiple pulls from the same branch in .git/remotes/origin
Quoted 2 lines · Michael S. Tsirkin
It seems that have to make
path_matchinconnect.creturn an array of indexes for that to work. Right?
I do not recall why Linus placed that "*s = 0" in there. That is the one that makes the same ref not match more than once.
It _could_ be that the fix is just the matter of removing that line, but it may have interesting consequences; I dunno offhand.
Re: Multiple pulls from the same branch in .git/remotes/origin
Quoting r. Junio C Hamano <[email protected]>:
Quoted 9 lines
Subject: Re: Multiple pulls from the same branch in .git/remotes/origin
Quoted 2 lines · Michael S. Tsirkin
It seems that have to make
path_matchinconnect.creturn an array of indexes for that to work. Right?I do not recall why Linus placed that "*s = 0" in there. That is the one that makes the same ref not match more than once.
Hmm, as I read it, this marks the *match* as already found. This seems to be what makes the sanity check in main work:
/* If the heads to pull were given, we should have
* consumed all of them by matching the remote.
* Otherwise, 'git-fetch remote no-such-ref' would
* silently succeed without issuing an error. */
What stops it is return i + 1 in path_match, no?
I think the issue is that path_match will stop at first match and not label multiple matches, so later sanity check in main errors out.
Quoted 4 lines
It _could_ be that the fix is just the matter of removing that line, but it may have interesting consequences; I dunno offhand.
What I did is just scan the full list of refspecs instead of breaking out at the first match.
Signature · 1 line
MST
PATCH 1/1 Multiple refs from the same remote in one git fetch
In reply to Junio C HamanoQuoting r. Junio C Hamano <[email protected]>:
Quoted 5 lines
Quoted 1 line
At least, fix the error message?
That would touch the same vicinity of code so if I were to do that myself I would rather see if the restriction can be loosened properly first.
The following seems to fix this issue: simply scan the full refspec list for each remote instead of breaking on the first match. I had to touch the git-fetch.sh script as well as it is scanning the remote list, too. Works for me.
---
Fix git fetch for when multiple refspecs reference the same remote head.
Makefile +0 -0
connect.c +3 -2
@@ -115,6 +115,7 @@ int get_ack(int fd, unsigned char *resulint path_match (const char *path,int nr,char **match) {int i; +int found =0 ;int pathlen =strlen (path);for (i =0 ; i < nr; i++) {
@@ -128,9 +129,9 @@ int path_match(const char *path, int nr,if (pathlen > len && path[pathlen - len -1 ] !='/' )continue ; *s =0 ; -return (i +1 ); + found = i +1 ; } -return 0 ; +return found; }struct refspec {
fetch-pack.c +0 -0
git-fetch.sh +7 -11
@@ -373,26 +373,22 @@ fetch_main () { +$remote_name:*) single_force=t not_for_merge= - found="$ref" - break ;; + found="$ref";; .+$remote_name:*) single_force=t not_for_merge=t - found="$ref" - break ;; + found="$ref";; .$remote_name:*) not_for_merge=t - found="$ref" - break ;; + found="$ref";; $remote_name:*) not_for_merge= - found="$ref" - break ;; + found="$ref";; esac - done - local_name=$(expr "z$found" : 'z[^:]*:\(.*\)') - append_fetch_head "$sha1" "$remote" \ + local_name=$(expr "z$found" : 'z[^:]*:\(.*\)') + append_fetch_head "$sha1" "$remote" \ "$remote_name" "$remote_nick" "$local_name" "$not_for_merge" + done done ) || exit ;; esac
Signature · 1 line
MST
Re: [PATCH] Multiple refs from the same remote in one git fetch
Quoted 4 lines · Michael S. Tsirkin
The following seems to fix this issue: simply scan the full refspec list for each remote instead of breaking on the first match. I had to touch the
git-fetch.shscript as well as it is scanning the remote list, too. Works for me.
Looks Ok, although I have to admit I just gave a cursory look. Thanks.
Re: [PATCH] Multiple refs from the same remote in one git fetch
Quoting r. Junio C Hamano <[email protected]>:
Quoted 4 lines
Subject: Re: [PATCH] Multiple refs from the same remote in one git fetch
"Michael S. Tsirkin" <[email protected]> writes:
Quoted 8 lines
Quoted 4 lines
The following seems to fix this issue: simply scan the full refspec list for each remote instead of breaking on the first match. I had to touch the
git-fetch.shscript as well as it is scanning the remote list, too. Works for me.Looks Ok, although I have to admit I just gave a cursory look. Thanks.
Could this go into next then?
Signature · 1 line
MST
Re: [PATCH] Multiple refs from the same remote in one git fetch
Quoted 10 lines · Michael S. Tsirkin
Quoting r. Junio C Hamano <[email protected]>:
Quoted 9 lines
Subject: Re: [PATCH] Multiple refs from the same remote in one git fetch
Quoted 4 lines · Michael S. Tsirkin
The following seems to fix this issue: simply scan the full refspec list for each remote instead of breaking on the first match. I had to touch the
git-fetch.shscript as well as it is scanning the remote list, too. Works for me.
Quoted 5 lines
Quoted 3 lines
Looks Ok, although I have to admit I just gave a cursory look. Thanks.
Could this go into next then?
No. Spoke too fast. Breaks t6200 test because it reports the refs fetched in duplicates.
Re: [PATCH] Multiple refs from the same remote in one git fetch
Quoting r. Junio C Hamano <[email protected]>:
Quoted 10 lines
Quoted 5 lines
Quoted 3 lines
Looks Ok, although I have to admit I just gave a cursory look. Thanks.
Could this go into next then?
No. Spoke too fast. Breaks t6200 test because it reports the refs fetched in duplicates.
Right, The problem was with the way I coded the loop in git-fetch.sh. Here's the fixed versin - seems to pass make test fine.
---
Fix git fetch for when multiple refspecs reference the same remote head.
connect.c +3 -2
@@ -115,6 +115,7 @@ int get_ack(int fd, unsigned char *resulint path_match (const char *path,int nr,char **match) {int i; +int found =0 ;int pathlen =strlen (path);for (i =0 ; i < nr; i++) {
@@ -128,9 +129,9 @@ int path_match(const char *path, int nr,if (pathlen > len && path[pathlen - len -1 ] !='/' )continue ; *s =0 ; -return (i +1 ); + found = i +1 ; } -return 0 ; +return found; }struct refspec {
git-fetch.sh +20 -11
@@ -366,6 +366,7 @@ fetch_main () { exit 1 ;; esac found= + found_any= single_force= for ref in $refs do
@@ -373,26 +374,34 @@ fetch_main () { +$remote_name:*) single_force=t not_for_merge= - found="$ref" - break ;; + found="$ref";; .+$remote_name:*) single_force=t not_for_merge=t - found="$ref" - break ;; + found="$ref";; .$remote_name:*) not_for_merge=t - found="$ref" - break ;; + found="$ref";; $remote_name:*) not_for_merge= - found="$ref" - break ;; + found="$ref";; + *) + found=;; esac + if test "$found" != "" + then + found_any=1 + local_name=$(expr "z$found" : 'z[^:]*:\(.*\)') + append_fetch_head "$sha1" "$remote" "$remote_name" \ + "$remote_nick" "$local_name" "$not_for_merge" + fi done - local_name=$(expr "z$found" : 'z[^:]*:\(.*\)') - append_fetch_head "$sha1" "$remote" \ - "$remote_name" "$remote_nick" "$local_name" "$not_for_merge" + if test "$found_any" == "" + then + local_name=$(expr "z$found" : 'z[^:]*:\(.*\)') + append_fetch_head "$sha1" "$remote" "$remote_name" \ + "$remote_nick" "$local_name" "$not_for_merge" + fi done ) || exit ;; esac
t/Makefile +0 -0
Signature · 1 line
MST
Re: [PATCH] Multiple refs from the same remote in one git fetch
Quoted 7 lines · Michael S. Tsirkin
Quoted 4 lines
Quoted 1 line
Could this go into next then?
No. Spoke too fast. Breaks t6200 test because it reports the refs fetched in duplicates.
Right, The problem was with the way I coded the loop in
git-fetch.sh. Here's the fixed versin - seems to pass make test fine.
But what are you doing for single_force and not_for_merge when there are more than one matches in the patch? They seem to get set to a random value depending on whatever happens to match last, which does not feel quite right.
Re: [PATCH] Multiple refs from the same remote in one git fetch
Quoting r. Junio C Hamano <[email protected]>:
Quoted 9 lines
Subject: Re: [PATCH] Multiple refs from the same remote in one git fetch
Quoted 5 lines · Michael S. Tsirkin
Quoted 4 lines
Quoted 1 line
Could this go into next then?
No. Spoke too fast. Breaks t6200 test because it reports the refs fetched in duplicates.
Quoted 8 lines
Quoted 2 lines
Right, The problem was with the way I coded the loop in
git-fetch.sh. Here's the fixed versin - seems to pass make test fine.But what are you doing for
single_forceandnot_for_mergewhen there are more than one matches in the patch? They seem to get set to a random value depending on whatever happens to match last, which does not feel quite right.
I think it was only true for single_force - but here's a patch to fix it and also make this explicit.
BTW, does it still look like it's worth it the effort to lift the restriction, or does fixing the error message to something like
"no such remote or duplicate ref %s"
make more sense to you?
connect.c +3 -2
@@ -115,6 +115,7 @@ int get_ack(int fd, unsigned char *resulint path_match (const char *path,int nr,char **match) {int i; +int found =0 ;int pathlen =strlen (path);for (i =0 ; i < nr; i++) {
@@ -128,9 +129,9 @@ int path_match(const char *path, int nr,if (pathlen > len && path[pathlen - len -1 ] !='/' )continue ; *s =0 ; -return (i +1 ); + found = i +1 ; } -return 0 ; +return found; }struct refspec {
git-fetch.sh +23 -12
@@ -366,33 +366,44 @@ fetch_main () { exit 1 ;; esac found= - single_force= + found_any= for ref in $refs do case "$ref" in +$remote_name:*) single_force=t not_for_merge= - found="$ref" - break ;; + found="$ref";; .+$remote_name:*) single_force=t not_for_merge=t - found="$ref" - break ;; + found="$ref";; .$remote_name:*) + single_force= not_for_merge=t - found="$ref" - break ;; + found="$ref";; $remote_name:*) + single_force= + not_for_merge= + found="$ref";; + *) + single_force= not_for_merge= - found="$ref" - break ;; + found=;; esac + if test "$found" != "" + then + found_any=1 + local_name=$(expr "z$found" : 'z[^:]*:\(.*\)') + append_fetch_head "$sha1" "$remote" "$remote_name" \ + "$remote_nick" "$local_name" "$not_for_merge" + fi done - local_name=$(expr "z$found" : 'z[^:]*:\(.*\)') - append_fetch_head "$sha1" "$remote" \ - "$remote_name" "$remote_nick" "$local_name" "$not_for_merge" + if test "$found_any" == "" + then + append_fetch_head "$sha1" "$remote" "$remote_name" \ + "$remote_nick" "" "" + fi done ) || exit ;; esac
t/Makefile +0 -0
Signature · 1 line
MST
Re: [PATCH] Multiple refs from the same remote in one git fetch
Quoted 4 lines · Michael S. Tsirkin
BTW, does it still look like it's worth it the effort to lift the restriction, or does fixing the error message to something like
"no such remote or duplicate ref %s"
make more sense to you?
I have been hesitant to claim that it does not make any sense to use more than one tracking branch for the same remote branch, because the only reason I might say so is because I haven't thought of a good usage pattern to do so.
But apparently you do use more than one local branch to keep track of one remote branch. How do you use it for? Do you feel it is a good feature to be able to do that, or do you think it is just a mistake and more sensible error message is what we would really want?
Re: [PATCH] Multiple refs from the same remote in one git fetch
Quoting r. Junio C Hamano <[email protected]>:
Quoted 14 lines
Subject: Re: [PATCH] Multiple refs from the same remote in one git fetch
Quoted 4 lines · Michael S. Tsirkin
BTW, does it still look like it's worth it the effort to lift the restriction, or does fixing the error message to something like
"no such remote or duplicate ref %s"
make more sense to you?I have been hesitant to claim that it does not make any sense to use more than one tracking branch for the same remote branch, because the only reason I might say so is because I haven't thought of a good usage pattern to do so.
Quoted 6 lines
But apparently you do use more than one local branch to keep track of one remote branch. How do you use it for? Do you feel it is a good feature to be able to do that, or do you think it is just a mistake and more sensible error message is what we would really want?
Well, what I was *trying* to do is simply add a more descriptive name for the linus master branch to my existing tree.
So it seemed like an obvious idea to add
Pull: master:origin
Pull: master:linus_master
On a more theoretical level, in a shared repository development style, one might imagine several people who want the branch to be called differently. Another reason might be scripts using specific branch names where you might want to be free to decide where a specific branch name points to.
Yea, I still feel it would be a good feature to have - I just wanted to check there's no opposition to this.
Signature · 1 line
MST
Re: [PATCH] Multiple refs from the same remote in one git fetch
Quoted 3 lines · Michael S. Tsirkin
On a more theoretical level, in a shared repository development style, one might imagine several people who want the branch to be called differently.
A shared repository in git context usually means the repository "everybody pushes into and pulls _from_". We are talking about pulling into a repository -- and even if you are using a shared repository you do not share a repository you pull into.
A shared repository style" does not mean anarchy; helping to name the same thing with multiple branch names at the central site is not something we would want to encourage anyway.
Re: [PATCH] Multiple refs from the same remote in one git fetch
Quoting r. Junio C Hamano <[email protected]>:
Quoted 4 lines
A shared repository style" does not mean anarchy; helping to name the same thing with multiple branch names at the central site is not something we would want to encourage anyway.
OK. Do other reasons sound sufficiently convincing to you?
Signature · 1 line
MST
Re: [PATCH] Multiple refs from the same remote in one git fetch
In reply to Michael S. TsirkinQuoted 1 line · Michael S. Tsirkin
Quoting r. Junio C Hamano <[email protected]>:
[...]
Quoted 12 lines
Quoted 11 lines
I have been hesitant to claim that it does not make any sense to use more than one tracking branch for the same remote branch, because the only reason I might say so is because I haven't thought of a good usage pattern to do so.
But apparently you do use more than one local branch to keep track of one remote branch. How do you use it for? Do you feel it is a good feature to be able to do that, or do you think it is just a mistake and more sensible error message is what we would really want?
Quoted 6 lines
Well, what I was *trying* to do is simply add a more descriptive name for the linus master branch to my existing tree.
So it seemed like an obvious idea to addPull: master:origin
Pull: master:linus_master
Couldn't you do this via symlinks or symrefs?
BTW. Do we support symrefs other than HEAD, and does reflog works with symref heads, and symlinked heads?
Signature · 3 lines
Jakub Narebski Warsaw, Poland ShadeHawk on #git
Re: [PATCH] Multiple refs from the same remote in one git fetch
Quoting r. Jakub Narebski <[email protected]>:
Quoted 22 lines
Subject: Re: [PATCH] Multiple refs from the same remote in one git fetch
Quoted 1 line · Michael S. Tsirkin
Quoting r. Junio C Hamano <[email protected]>:
[...]
Quoted 16 lines
Quoted 11 lines
I have been hesitant to claim that it does not make any sense to use more than one tracking branch for the same remote branch, because the only reason I might say so is because I haven't thought of a good usage pattern to do so.
But apparently you do use more than one local branch to keep track of one remote branch. How do you use it for? Do you feel it is a good feature to be able to do that, or do you think it is just a mistake and more sensible error message is what we would really want?
Well, what I was *trying* to do is simply add a more descriptive name for the linus master branch to my existing tree.
So it seemed like an obvious idea to add
Quoted 7 lines
Quoted 2 lines
Pull: master:origin
Pull: master:linus_masterCouldn't you do this via symlinks or symrefs?
BTW. Do we support symrefs other than HEAD, and does reflog works with symref heads, and symlinked heads?
How?
Signature · 1 line
MST
Re: [PATCH] Multiple refs from the same remote in one git fetch
Quoted 8 lines · Michael S. Tsirkin
Quoted 8 lines
Quoted 7 lines
Well, what I was *trying* to do is simply add a more descriptive name for the linus master branch to my existing tree.
So it seemed like an obvious idea to add
Pull: master:origin
Pull: master:linus_master
Quoted 6 lines
Quoted 4 lines
Couldn't you do this via symlinks or symrefs?
BTW. Do we support symrefs other than HEAD, and does reflog works with symref heads, and symlinked heads?
How?
Have only "Pull: master:linus_master" as the pull line, and make origin symlink (ln -s $GIT_DIR/refs/heads/linus_master $GIT_DIR/refs/heads/origin) or symref (echo "ref: refs/heads/linus_master" > $GIT_DIR/refs/heads/origin) or vice versa.
Signature · 3 lines
Jakub Narebski Warsaw, Poland ShadeHawk on #git
Re: [PATCH] Multiple refs from the same remote in one git fetch
Quoting r. Jakub Narebski <[email protected]>:
Quoted 4 lines
Have only "Pull: master:linus_master" as the pull line, and make origin symlink (ln -s $GIT_DIR/refs/heads/linus_master $GIT_DIR/refs/heads/origin) or symref (echo "ref: refs/heads/linus_master" > $GIT_DIR/refs/heads/origin) or vice versa.
Thanks.
Signature · 1 line
MST
PATCH 1/1 Multiple refs from the same remote in one git fetch
In reply to Michael S. TsirkinHi, Junio!
Is the following likely to get merged eventually? It was pointed out that I can work-around the limitation by using softlinks, so it's not a show-stopper for me.
---
Fix git fetch for when multiple refspecs reference the same remote head.
connect.c +3 -2
@@ -115,6 +115,7 @@ int get_ack(int fd, unsigned char *resulint path_match (const char *path,int nr,char **match) {int i; +int found =0 ;int pathlen =strlen (path);for (i =0 ; i < nr; i++) {
@@ -128,9 +129,9 @@ int path_match(const char *path, int nr,if (pathlen > len && path[pathlen - len -1 ] !='/' )continue ; *s =0 ; -return (i +1 ); + found = i +1 ; } -return 0 ; +return found; }struct refspec {
git-fetch.sh +23 -12
@@ -366,33 +366,44 @@ fetch_main () { exit 1 ;; esac found= - single_force= + found_any= for ref in $refs do case "$ref" in +$remote_name:*) single_force=t not_for_merge= - found="$ref" - break ;; + found="$ref";; .+$remote_name:*) single_force=t not_for_merge=t - found="$ref" - break ;; + found="$ref";; .$remote_name:*) + single_force= not_for_merge=t - found="$ref" - break ;; + found="$ref";; $remote_name:*) + single_force= + not_for_merge= + found="$ref";; + *) + single_force= not_for_merge= - found="$ref" - break ;; + found=;; esac + if test "$found" != "" + then + found_any=1 + local_name=$(expr "z$found" : 'z[^:]*:\(.*\)') + append_fetch_head "$sha1" "$remote" "$remote_name" \ + "$remote_nick" "$local_name" "$not_for_merge" + fi done - local_name=$(expr "z$found" : 'z[^:]*:\(.*\)') - append_fetch_head "$sha1" "$remote" \ - "$remote_name" "$remote_nick" "$local_name" "$not_for_merge" + if test "$found_any" == "" + then + append_fetch_head "$sha1" "$remote" "$remote_name" \ + "$remote_nick" "" "" + fi done ) || exit ;; esac
Signature · 1 line
MST
Re: [PATCH repost] Multiple refs from the same remote in one git fetch
Although this round does not seem to break tests like before, I still do not see a valid use case for it. So...