git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* problem with git worktree and git svn
@ 2016-10-12 14:45 Mathieu Arnold
  2016-10-12 21:05 ` Stefan Beller
  0 siblings, 1 reply; 10+ messages in thread
From: Mathieu Arnold @ 2016-10-12 14:45 UTC (permalink / raw)
  To: git


[-- Attachment #1.1: Type: text/plain, Size: 974 bytes --]

Hi,

I'm a FreeBSD ports developer, and while our main repository is in
Subversion, some of us use git-svn a lot for development.

I discovered git worktree earlier this week, and I found it a great
asset to be able to have more than one branch of my worktree accessible
at the same time...

Anyway, back to my problem, the way git-svn works, is that it looks for
a directory named "svn" in its gitdir and if it is not present, decide
the repository is using git-svn version 1 (whatever that is) and goes to
parse all the revisions to recreate the svn directory.
So I can only use git svn commands in my main worktree, the one with the
real gitdir.
To fix that, all I had to do is to add a symlink named svn in each
worktree's gitdir and pointing to ../../svn.

I think all that needs to happen is that when adding a new worktree, if
the main git directory has a "svn" directory, add a symlink to it in the
worktree's gitdir.

-- 
Mathieu Arnold



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 949 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2016-10-26 21:17 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-12 14:45 problem with git worktree and git svn Mathieu Arnold
2016-10-12 21:05 ` Stefan Beller
2016-10-13  1:52   ` Eric Wong
2016-10-13 10:29     ` Duy Nguyen
2016-10-13 20:55       ` Eric Wong
2016-10-14  1:46         ` [PATCH 0/2] git-svn: implement "git worktree" awareness Eric Wong
2016-10-14  1:46           ` [PATCH 1/2] git-svn: reduce scope of input record separator change Eric Wong
2016-10-14  1:46           ` [PATCH 2/2] git-svn: "git worktree" awareness Eric Wong
2016-10-26 20:02           ` [PATCH 0/2] git-svn: implement " Eric Wong
2016-10-26 21:17             ` Junio C Hamano

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).