# git svn dcommit does not cleanup after errors

2 messages from 2008-03-09 to 2008-03-14. Participants: Alexander Gladysh.
Thread: https://gitlist.dev/t/12605

## Alexander Gladysh, 2008-03-09 13:36

Subject: git svn dcommit does not cleanup after errors
Message-ID: <c6c947f60803090636m3c656d35x5a924d093f68628e@mail.gmail.com>
URL: https://gitlist.dev/e/c6c947f60803090636m3c656d35x5a924d093f68628e%40mail.gmail.com

```
Hi, list!

(GIT v1.5.4.4)

When I'm doing git svn dcommit and it fails in the middle (due to SVN
pre-commit hooks or connection errors or whatever), it leaves my HEAD
rewound to the last commit it attempted to upload. I have to manually
do git reset HEAD@{whatever}. Is this behaviour intended? Is there a
more convenient way to restore my HEAD state?

Thanks in advance,
Alexander.

```

## Alexander Gladysh, 2008-03-14 15:49

Subject: Re: git svn dcommit does not cleanup after errors
Message-ID: <c6c947f60803140849n7116a58cp77e10217f2d97a38@mail.gmail.com>
URL: https://gitlist.dev/e/c6c947f60803140849n7116a58cp77e10217f2d97a38%40mail.gmail.com
In-Reply-To: <c6c947f60803090636m3c656d35x5a924d093f68628e@mail.gmail.com>

```
Hi, list!

>  (GIT v1.5.4.4)
>
>  When I'm doing git svn dcommit and it fails in the middle (due to SVN
>  pre-commit hooks or connection errors or whatever), it leaves my HEAD
>  rewound to the last commit it attempted to upload. I have to manually
>  do git reset HEAD@{whatever}. Is this behaviour intended? Is there a
>  more convenient way to restore my HEAD state?

Is this a RTFM question? Or is it a feature? I have not found any
solutions to this problem so far, and this issue is quite annoying on
bad network. :-(

Thanks in advance,
Alexander.

```
