[git-users] Re: importing svn directori inside git project

2010-07-20 Thread frankie
On 19 Jul, 16:38, Konstantin Khomoutov khomou...@gmail.com wrote:

 Well, let me just demonstrate a session involving `git svn` and `git
 subtree` which I recorded minutes ago (Debian Lenny, stock Git 1.6.5,
 Subversion 1.5.1):http://pastebin.com/xm8aKje4

Hi, thank you very much. I tried following the session but I still get
stuck
in git subtree:

/tmp/apenwarr-git-subtree-d553db6/git-subtree add --prefix=bar /home/
frankie/src/git/project/

  Error: Use --prefix instead of bare filenames.

Then I tried adding master just like you did in the example:

git-subtree add --prefix=bar /home/frankie/src/git/project/ master

   fatal: ambiguous argument 'master': unknown revision or path not in
the working tree.
Use '--' to separate paths from revisions

Then I tried file:// instead /path

git-subtree add --prefix=bar file:///home/frankie/src/git/project/

  fatal: Invalid object name 'file'.

( I tried file:// , file:///, all the same )

I downloaded the latest git-subtree from github. I have ubuntu with
git version
 1.7.0.4.  svn, version 1.6.6.

Any hints ?

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To post to this group, send email to git-us...@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



[git-users] Re: importing svn directori inside git project

2010-07-19 Thread frankie
On 15 Jul, 16:44, Konstantin Khomoutov khomou...@gmail.com wrote:
Hi. I have some svn projects I want to join in a git big project.
 
  I guess I need to tell git subtree this is a svn subtree but I just
  don't know how.

 Note that any Git repo can be cloned; local repositories residing on
 your local filesystem are no exception; repos created using git-svn
 are no exception, too.
 So you can do this:
 1) Create a local Git repo using git-svn;
 2) Import it using git-subtree passing it the URL of the local Git
 repo created at step (1) as /path/to/the/repo or file:///path/to/the/repo

Hi I still can't manage to add a subtree.
I cloned the repository, I tried two different ways:

  1.  git svn clone http://server/...
  2.  git svn init http://server/...
   git svn fetch

Then when I want to clone it using git subtree I get this message:

  mkdir main
  cd main
  git init
  git subtree add --prefix=prj file://home/path/svnproj

  fatal: Invalid object name 'file'.

If I do:

  git subtree add --prefix=prj /home/path/svnproj

  Error: Use --prefix instead of bare filenames.

I am clueless. Please what am I missing ?

What am O missing ? it looks like git subtree

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To post to this group, send email to git-us...@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



[git-users] Re: importing svn directori inside git project

2010-07-19 Thread Konstantin Khomoutov
On Jul 19, 6:06 pm, frankie frankie.gua...@gmail.com wrote:

 Hi. I have some svn projects I want to join in a git big project.
   I guess I need to tell git subtree this is a svn subtree but I just
   don't know how.
  Note that any Git repo can be cloned; local repositories residing on
  your local filesystem are no exception; repos created using git-svn
  are no exception, too.
  So you can do this:
  1) Create a local Git repo using git-svn;
  2) Import it using git-subtree passing it the URL of the local Git
  repo created at step (1) as /path/to/the/repo or file:///path/to/the/repo

 Hi I still can't manage to add a subtree.
 I cloned the repository, I tried two different ways:
[...]
 What am O missing ? it looks like git subtree

Well, let me just demonstrate a session involving `git svn` and `git
subtree` which I recorded minutes ago (Debian Lenny, stock Git 1.6.5,
Subversion 1.5.1): http://pastebin.com/xm8aKje4

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To post to this group, send email to git-us...@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



[git-users] Re: importing svn directori inside git project

2010-07-15 Thread frankie

On 12 Jul, 16:25, Konstantin Khomoutov khomou...@gmail.com wrote:
 On Jul 12, 12:10 pm, frankie frankie.gua...@gmail.com wrote:

  Hi. I have some svn projects I want to join in a git big project.

 Assuming you want to do the latter, I think git-subtree [1] can be of
 help: as I understand, it allows you to inject a subtree to a bigger
 project.

Hi. I am unable to import a svn tree inside git using subtree. I don't
know
how to tell subtree where to download it and the documentation is too
simple.

I'm trying this and some many guesses more :

git subtree add --prefix=project http://server/repos/project
fatal: Invalid object name 'http'.

I'm not sure, I also tried to create an empty subtree and then use git
svn
somehow but I just can't:

git subtree add --prefix=etc
fatal: ambiguous argument 'HEAD': unknown revision or path not in the
working tree.

I guess I need to tell git subtree this is a svn subtree but I just
don't know how.

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To post to this group, send email to git-us...@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



[git-users] Re: importing svn directori inside git project

2010-07-13 Thread frankie
On 12 Jul, 16:25, Konstantin Khomoutov khomou...@gmail.com wrote:
 On Jul 12, 12:10 pm, frankie frankie.gua...@gmail.com wrote:

 I have some svn projects I want to join in a git big project.

 Assuming you want to do the latter, I think git-subtree [1] can be of
 help: as I understand, it allows you to inject a subtree to a bigger
 project.

It looks it will be enough. I'll take a look, thank you very much
Konstantin.

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To post to this group, send email to git-us...@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.