[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-scm-interest
Subject:    Re: [Kde-scm-interest] Minutes from Today's KDE -> Git BoF
From:       Johannes Sixt <j.sixt () viscovery ! net>
Date:       2009-07-17 8:19:37
Message-ID: 4A603419.2010001 () viscovery ! net
[Download RAW message or body]

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
Kde-scm-interest@kde.org
https://mail.kde.org/mailman/listinfo/kde-scm-interest
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic