bash - How to config gerrit refs in Zsh? -


in team, use gerrit code review.

as know, gerrit uses magical 'refs/for/*'.


since not want type

git push origin head:refs/for/* 

every time push remote,

i tried change git repository's config below.

git config remote.origin.push refs/heads/*:refs/for/* 

changing config works in bash,

but fails in zsh error below.

zsh: no matches found: refs/heads/*:refs/for/* 

i think using asterisk in zsh different bash,

but cannot know problem is.


how can solve problem? or impossible in zsh?

thanks in advance.

by default when bash fails glob puts whole pattern arguments unchanged. when zsh fails glob not run command @ find more convenient in cases. both shells can configured, zsh has @ least 3 other modes: bash, remove pattern arguments , remove pattern arguments unless there no patterns match. these behaviors achieved unsetting nomatch or setting csh_null_glob or null_glob respectively.

i suggest keeping current behavior , using various escaping methods: 'refs/heads/*:refs/for/*' (double quotes work) or refs/heads/\*:refs/for/\*.


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -