ef-labs / stash-hook-mirror

An Atlassian Stash repository hook for mirroring to one or more remote git repositories.
MIT License
77 stars 58 forks source link

fancy branch name -> fatal #74

Open yesnault opened 4 years ago

yesnault commented 4 years ago

Hi,

with fancy branch name, we have:

/usr/bin/git push --prune ssh://foo.bar/myprj/myrepo.git --force --atomic +refs/heads/*:refs/heads/* +refs/tags/*:refs/tags/* +refs/notes/*:refs/notes/*' exited with code 1 saying: remote: FATAL: invalid characters in ref or filename: 'refs/heads/HHHH-xxxx-Monitor-number-of-items-'removed_snaps'-list-'

It was ok with Version 2.0.0, not ok with Version 3.0.0

yesnault commented 4 years ago

same with a branch name refs/heads/dev/ar/cepĥe for example