How to escape three dots in bash script using git command -
i have problem execute git command using shell script. need execute following command:
git log $1...$2
where $1 , $2 tags git project version. know problem in using 3 dots in shell script. using command above results in this:
example - dagger git project google repository
git log --pretty=%h dagger-2.3...dagger-2.4..
this command results in:
fatal: ambiguous argument 'dagger-2.3...dagger-2.4...': unknown revision or path not in working tree. use '--' separate paths revisions, this: 'git < command > [< revision >...] -- [< file >...]'
passing -x bash script show me following message :
+ git log --pretty=%h dagger-2.3...dagger-2.4...
how can solve this? need take hashes commits between 2 tags
Comments
Post a Comment