* problem after cvsimport
@ 2007-07-26 1:49 Bert Douglas
2007-07-26 3:07 ` Junio C Hamano
0 siblings, 1 reply; 5+ messages in thread
From: Bert Douglas @ 2007-07-26 1:49 UTC (permalink / raw)
To: git
I am new to git, so probably doing something wrong.
Hope somebody can enlighten me.
Here is what happened so far.
Followed instructions here:
http://www.kernel.org/pub/software/scm/git/docs/cvs-migration.html
Did command like this:
$ git cvsimport -C <destination> <module>
This was done from top level of existing cvs working directory.
Destination was new empty directory, outside the cvs tree.
It worked for several hours and seemed to complete ok.
I can look at history in destination git directory with gitk and git log.
All the stuff in ".git" looks normal, as far as I can tell.
But I have no files in the working directory.
When I do command:
$git checkout master
I get a bunch of lines to console with "D" in front.
Btw, what does that mean? Nothing about it in "man git-checkout" or elsewhere that I can find.
Then it says -- Already on branch "master"
But working directory is still empty.
Thanks much,
Bert Douglas
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: problem after cvsimport
2007-07-26 1:49 problem after cvsimport Bert Douglas
@ 2007-07-26 3:07 ` Junio C Hamano
2007-07-26 6:56 ` Bert Douglas
0 siblings, 1 reply; 5+ messages in thread
From: Junio C Hamano @ 2007-07-26 3:07 UTC (permalink / raw)
To: Bert Douglas; +Cc: git
Bert Douglas <bertd@tplogic.com> writes:
> I am new to git, so probably doing something wrong.
> Hope somebody can enlighten me.
> Here is what happened so far.
>
> Followed instructions here:
> http://www.kernel.org/pub/software/scm/git/docs/cvs-migration.html
>
> Did command like this:
>
> $ git cvsimport -C <destination> <module>
>
> This was done from top level of existing cvs working directory.
> Destination was new empty directory, outside the cvs tree.
>
> It worked for several hours and seemed to complete ok.
> I can look at history in destination git directory with gitk and git log.
> All the stuff in ".git" looks normal, as far as I can tell.
>
> But I have no files in the working directory.
> When I do command:
> $git checkout master
>
> I get a bunch of lines to console with "D" in front.
> Btw, what does that mean? Nothing about it in "man git-checkout" or elsewhere that I can find.
> Then it says -- Already on branch "master"
>
> But working directory is still empty.
Have you tried "git checkout -f" after that? With recent enough
git, "git cvsimport -C <destination> <module>" from the top
level of existing cvs working directory, with nonexistent
destination directory (that is, you let "git cvsimport -C" to
create that destination directory) would run "git checkout -f"
for you.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: problem after cvsimport
2007-07-26 3:07 ` Junio C Hamano
@ 2007-07-26 6:56 ` Bert Douglas
2007-07-26 7:02 ` Junio C Hamano
0 siblings, 1 reply; 5+ messages in thread
From: Bert Douglas @ 2007-07-26 6:56 UTC (permalink / raw)
To: Junio C Hamano; +Cc: git
Junio C Hamano wrote:
> Bert Douglas <bertd@tplogic.com> writes:
>
>
>> I am new to git, so probably doing something wrong.
>> Hope somebody can enlighten me.
>> Here is what happened so far.
>>
>> Followed instructions here:
>> http://www.kernel.org/pub/software/scm/git/docs/cvs-migration.html
>>
>> Did command like this:
>>
>> $ git cvsimport -C <destination> <module>
>>
>> This was done from top level of existing cvs working directory.
>> Destination was new empty directory, outside the cvs tree.
>>
>> It worked for several hours and seemed to complete ok.
>> I can look at history in destination git directory with gitk and git log.
>> All the stuff in ".git" looks normal, as far as I can tell.
>>
>> But I have no files in the working directory.
>> When I do command:
>> $git checkout master
>>
>> I get a bunch of lines to console with "D" in front.
>> Btw, what does that mean? Nothing about it in "man git-checkout" or elsewhere that I can find.
>> Then it says -- Already on branch "master"
>>
>> But working directory is still empty.
>>
>
> Have you tried "git checkout -f" after that? With recent enough
> git, "git cvsimport -C <destination> <module>" from the top
> level of existing cvs working directory, with nonexistent
> destination directory (that is, you let "git cvsimport -C" to
> create that destination directory) would run "git checkout -f"
> for you.
>
Somehow I missed that option.
That worked. Very fast. Thanks.
Am I going to have to do "-f" a lot?
How will I know when to do it?
Why not do it all the time?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: problem after cvsimport
2007-07-26 6:56 ` Bert Douglas
@ 2007-07-26 7:02 ` Junio C Hamano
2007-07-26 7:18 ` Bert Douglas
0 siblings, 1 reply; 5+ messages in thread
From: Junio C Hamano @ 2007-07-26 7:02 UTC (permalink / raw)
To: Bert Douglas; +Cc: git
Bert Douglas <bertd@tplogic.com> writes:
> Am I going to have to do "-f" a lot?
> How will I know when to do it?
> Why not do it all the time?
With recent enough git, you shouldn't even have to do that extra
"git checkout". It was noticed and fixed quite a while ago.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: problem after cvsimport
2007-07-26 7:02 ` Junio C Hamano
@ 2007-07-26 7:18 ` Bert Douglas
0 siblings, 0 replies; 5+ messages in thread
From: Bert Douglas @ 2007-07-26 7:18 UTC (permalink / raw)
To: Junio C Hamano; +Cc: git
Junio C Hamano wrote:
> Bert Douglas <bertd@tplogic.com> writes:
>
>
>> Am I going to have to do "-f" a lot?
>> How will I know when to do it?
>> Why not do it all the time?
>>
>
> With recent enough git, you shouldn't even have to do that extra
> "git checkout". It was noticed and fixed quite a while ago.
>
>
Thanks much.
$ git --version
git version 1.5.2.4
But I guess my basic question remains in two parts.
(1) Will it 'get out of sync' again sometime ?
(2) Will anything bad happen if I always do 'checkout -f' ?
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-07-26 7:28 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-26 1:49 problem after cvsimport Bert Douglas
2007-07-26 3:07 ` Junio C Hamano
2007-07-26 6:56 ` Bert Douglas
2007-07-26 7:02 ` Junio C Hamano
2007-07-26 7:18 ` Bert Douglas
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).