Simon Hausmann schrieb:
> 2) Periodically:
>
> cd snapshots
> git fetch source
> git read-tree source/git-branch
> git commit -m "snapshot from $url at $date"
> git checkout .
> git svn dcommit
Make this
cd snapshots
git fetch source
(
GIT_INDEX_FILE=.git/tmp-index; export GIT_INDEX_FILE
git read-tree source/git-branch
git commit -m "snapshot from $url at $date"
)
git reset --hard
git svn dcommit
Otherwise, you leave files in the working directory that were deleted from
the source (even though they would not be committed to svn).
BTW, I wonder whether it would be possible to do this in a bare git
repository to save resources, i.e. whether git svn can operate without a
working directory.
-- Hannes
_______________________________________________
Kde-scm-interest mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kde-scm-interest