[Kde-scm-interest] Minutes from Today's KDE -> Git BoF

Johannes Sixt j.sixt at viscovery.net
Fri Jul 17 10:19:37 CEST 2009


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


More information about the Kde-scm-interest mailing list