Skip to content

Commit

Permalink
Item11483: force the push upon creation, in case it already existed a…
Browse files Browse the repository at this point in the history
…nd would not fast-forward

git-svn-id: http://svn.foswiki.org/trunk@13898 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
OlivierRaginel authored and OlivierRaginel committed Feb 2, 2012
1 parent cbaa8b4 commit 0ca0aa3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/tools/develop/hooks/git-svn-split.pl
Expand Up @@ -150,10 +150,11 @@ sub getSubModule {
$submodule->run( checkout => $branch );

# Create local branch if it doesn't exist
unless( eval { $submodule->run( 'symbolic-ref' => 'HEAD' ) } ) {
unless ( eval { $submodule->run( 'symbolic-ref' => 'HEAD' ) } ) {
$submodule->run( checkout => '-b' => $branch );
$submodule->run( push => '-f', origin => $branch );
}
$submodule->run( svn => 'rebase' );
$submodule->run( svn => 'rebase' );
}
$submodule->run( push => '--all' );
}
Expand Down

0 comments on commit 0ca0aa3

Please sign in to comment.