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

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -