Skip to content

Commit

Permalink
#921 fix github error on commit
Browse files Browse the repository at this point in the history
  • Loading branch information
filippomc committed Mar 26, 2024
1 parent 4c5a0c6 commit ca6cfad
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions applications/workspaces/tasks/github-copy/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,9 @@ if [ ! -d "${download_path}/.git" ]; then
# create new branch, commit there
echo "Git: checking out new branch and committing"
git checkout -b "$timestamp"
git commit -m "osbv2: checked out repository"

echo "checked out branch $timestamp"
git diff-index --quiet HEAD || git commit -ma "osbv2: checked out repository"

# unset username: ensure that user has to set it manually if they
# do anything with git in the repo
echo "Git: unsetting user/email for repo"
Expand Down

0 comments on commit ca6cfad

Please sign in to comment.