What is to be done to fix Git log command failing from a Bitrise script

1'hafs

Consider:

git log --pretty="format: %s" master..HEAD

This is failing from a Bitrise script step with the below error:

fatal: ambiguous argument 'master..HEAD': unknown revision or path not in the working tree.

1'hafs

Make sure you run below git commands before running the git log command mentioned.

git fetch --all

git branch --set-upstream master origin/master

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Bitrise bash script - command not found

Git log out user from command line

Git log, input from another command

expect command in bash script failing

Git command works in terminal but not from groovy script

What plumbing command provides the same functionality as git log --follow?

Formatting git log command

Bash script using mysql command with variables failing

Sed command failing with bad flag in script

Bash: Execute git command in .bashrc failing

Break ssh command from within a script and save debug log to a file

How to log every single command executed from shell script

C# fetch all text from git log command

execute a script from a script failing respect white

My command runs in bash, but not from /etc/init, what have I done wrong?

Pipe output from command in Git Bash to Powershell script on windows

What should be done to copy files from installed directory to another after installation complete using inno setup script?

What is a "switch" in a Git command?

What is @ for in git command?

How to log the "exec" command's result into log_file from an expect script

What's the easiest way to use the output paths from a git command in a subsequent git command?

shell script call failing from oozie

mysqldump failing when launched from script

AzCopy from HDInsight cluster failing in PowerShell script

rsync failing but only from within bash script

phpmailer attachment failing whenever I execute file with cronjob/mail to outerside clients but works whenever I run script from command line

Git for Windows Bash shell 'less' command displays garbage while displaying formatted text from Git log call

Check git log with shell script

How to fix alignment problem in git log --graph