git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git-svn: problem with svn cp trunk/subdir tags/subdir_1.0
@ 2013-04-29 12:46 Ilya Basin
  2013-04-29 13:00 ` Ilya Basin
  2013-05-02 18:19 ` Ilya Basin
  0 siblings, 2 replies; 3+ messages in thread
From: Ilya Basin @ 2013-04-29 12:46 UTC (permalink / raw)
  To: Git mailing list; +Cc: Ray Chen, Eric Wong

After fixing --preserve-empty-dirs plus --stdlayout a new problem
arised:
When creating a tag or branch from a subdir, a disjoint branch
is created. Then git-svn re-imports the commits using this dir as
strip path.

Why? I would instead keep the current commit as parent, delete
everything except the subdir and move its contents to root directory.

During this re-import the variable %added_placeholder is not up to
date. Because the branch is disjoint, this variable should be empty in
the beginning, but it's not.
Because of that git-svn tries to delete non-existent .gitignore files
and dies.

I think, if a disjoint branch is created, %added_placeholder should be
pushed and cleared. A new set of paths starting with "trunk/" will be
added to it during re-import.
When re-import is done, we should translate the paths to
"tags/subdir_1.0/" and merge with the original %added_placeholder.

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

end of thread, other threads:[~2013-05-02 18:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-29 12:46 git-svn: problem with svn cp trunk/subdir tags/subdir_1.0 Ilya Basin
2013-04-29 13:00 ` Ilya Basin
2013-05-02 18:19 ` Ilya Basin

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).