* Some more cvsimport
@ 2006-03-08 8:49 Rajkumar S
2006-03-11 6:34 ` Matthias Urlichs
0 siblings, 1 reply; 3+ messages in thread
From: Rajkumar S @ 2006-03-08 8:49 UTC (permalink / raw)
To: git
[-- Attachment #1: Type: text/plain, Size: 677 bytes --]
Hi all,
Thanks every one for replying to my previous mails and to Smurf for his helpful replies
and patch.
The cvs project I am trying to track has 2 branchs. One head and another for releng_1. The
upstream cvs tree gets updated on both branchs. I also make modifications to both. When I
normally do cvsimport, the releng_1 tree gets updated automatically, but if I have checked
out the releng_1 branch in my local git repository when cvsimport happens the files do not
get updated. I can fix this by checking out the master branch just before cvsimport and
then switching back.
I am attaching a test script to simulate the problem and the fix is commented out.
raj
[-- Attachment #2: git_branch_init.sh --]
[-- Type: application/x-shellscript, Size: 2297 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Some more cvsimport
2006-03-08 8:49 Some more cvsimport Rajkumar S
@ 2006-03-11 6:34 ` Matthias Urlichs
2006-03-11 7:00 ` Junio C Hamano
0 siblings, 1 reply; 3+ messages in thread
From: Matthias Urlichs @ 2006-03-11 6:34 UTC (permalink / raw)
To: git
Hi, Rajkumar S wrote:
> When I normally do cvsimport, the releng_1
> tree gets updated automatically, but if I have checked out the releng_1
> branch in my local git repository when cvsimport happens the files do not
> get updated.
Don't Do That.
I just removed the "update checked-out tree" logic because it has too many
corner cases.
I could conceivably add a check for HEAD pointing to the CVS branch I'm
just checking out, but on second thought I'd rather wait for the
refs/remotes/ work to show up, and then simply s/heads/remotes/g. ;-)
--
Matthias Urlichs
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Some more cvsimport
2006-03-11 6:34 ` Matthias Urlichs
@ 2006-03-11 7:00 ` Junio C Hamano
0 siblings, 0 replies; 3+ messages in thread
From: Junio C Hamano @ 2006-03-11 7:00 UTC (permalink / raw)
To: Rajkumar S; +Cc: git, Matthias Urlichs
Matthias Urlichs <smurf@smurf.noris.de> writes:
> Hi, Rajkumar S wrote:
>
>> When I normally do cvsimport, the releng_1
>> tree gets updated automatically, but if I have checked out the releng_1
>> branch in my local git repository when cvsimport happens the files do not
>> get updated.
>
> Don't Do That.
I tend to agree with this.
Think of foreign SCM imports, especially the ones that do not
use working tree files, just like tracking foreign branch heads
using "git fetch". You do not fetch into the current branch,
nor you check out and do your work tracking branch. You use
them to keep track of other people's work, and if you want to
use it you pull that into your branch, typically but not
necessarily "master".
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-03-11 7:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-08 8:49 Some more cvsimport Rajkumar S
2006-03-11 6:34 ` Matthias Urlichs
2006-03-11 7:00 ` Junio C Hamano
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox