You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given I trigger the script extract-emails-from-history.sh on a repository without any commits
When the git log command is executed
The command and the scripts fail
The failure message is "fatal: your current branch 'master' does not have any commits yet" and the error code is 128
Solution: Check if there are commits and trap the failure signal:
if [ "$( git log --oneline -5 2>/dev/null | wc -l )"-eq 0 ];thenecho"Warning: Project '$git_based_project' is a git repository without any commit, that's weird"
CleanFiles
NormalExit
fi
The text was updated successfully, but these errors were encountered:
pylapp
added
bug
Something isn't working
doing
Just to see if some work in being done on this issue
labels
Mar 9, 2022
Given I trigger the script extract-emails-from-history.sh on a repository without any commits
When the
git log
command is executedThe command and the scripts fail
The failure message is "fatal: your current branch 'master' does not have any commits yet" and the error code is 128
Solution: Check if there are commits and trap the failure signal:
The text was updated successfully, but these errors were encountered: