lite icon indicating copy to clipboard operation
lite copied to clipboard

--target branch doesn't work as expected

Open benito103e opened this issue 8 years ago • 3 comments

I don't find the way, to automatically put the commit on a branch.

If "test-splitsh" doesn't exist

# does not create the branch
splitsh-lite --prefix inc/library --target=heads/test-splitsh --progress
# The target is not a valid Git reference
splitsh-lite --prefix inc/library --target=test-splitsh --progress

If "test-splitsh" exist

# does not update the branch
splitsh-lite --prefix inc/library --target=heads/test-splitsh --progress
# The target is not a valid Git reference
splitsh-lite --prefix inc/library --target=test-splitsh --progress

benito103e avatar Jun 28 '17 09:06 benito103e

For clarification: the first time I executed the command : splitsh-lite --prefix inc/library --target=heads/test-splitsh --progress the branch was created.

But since then, impossible to replicate this operation.

benito103e avatar Jun 28 '17 09:06 benito103e

it creates a .git/heads/test-splitsh instead of .git/refs/heads/test-splitsh

benito103e avatar Jun 28 '17 09:06 benito103e

It's a little bit confusing but it works running : `splitsh-lite --prefix inc/library --target refs/heads/test-splitsh --progress --debug

benito103e avatar Jun 28 '17 10:06 benito103e