1

I like how (normal) git won't let me push if I haven't rebased with the latest code. However with git svn, when I do git svn dcommit it automatically rebases (i.e. git svn rebase) and then commits. Is there a way I can have it throw up an error message if there is new stuff to rebase?

Aaron Silverman
  • 22,070
  • 21
  • 83
  • 103
  • 1
    I believe it commits, and then rebases on top of the new SVN revision. I don't think SVN has any way to abort the commit if it's not already at the latest. – Lily Ballard Apr 19 '12 at 18:57

1 Answers1

1

No way. There is always a chance that somebody will commit right after you made any check-as-you-are-looking-for and right before you actually commit something. Just run git svn fetch every time before git svn dcommit to be almost sure git won't rebase automatically.

the.malkolm
  • 2,391
  • 16
  • 16