Re: [PATCH] contrib/subtree: don't delete remote branches if split fails

2013-05-01 Thread Junio C Hamano
John Keeping writes: > When using "git subtree push" to split out a subtree and push it to a > remote repository, we do not detect if the split command fails which > causes the LHS of the refspec to be empty, deleting the remote branch. > > Fix this by pulling the result of the split command into

[PATCH] contrib/subtree: don't delete remote branches if split fails

2013-05-01 Thread John Keeping
When using "git subtree push" to split out a subtree and push it to a remote repository, we do not detect if the split command fails which causes the LHS of the refspec to be empty, deleting the remote branch. Fix this by pulling the result of the split command into a variable so that we can die i