Skip to content

Commit 8f223eb

Browse files
authored
Merge pull request #27 from bricewge/fix-stash
2 parents 878e991 + ff73164 commit 8f223eb

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

git-fire

+5-3
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,11 @@ fire() {
4848
git push --set-upstream "${remote}" "$(current_branch)" || true
4949
done
5050

51-
for sha in $(git rev-list -g stash); do
52-
git push origin "$sha":refs/heads/"$(current_branch $initial_branch)"-stash-"$sha"
53-
done
51+
if [[ $(git stash list) != '' ]]; then
52+
for sha in $(git rev-list -g stash); do
53+
git push origin "$sha":refs/heads/"$(current_branch $initial_branch)"-stash-"$sha"
54+
done
55+
fi
5456

5557
printf "\n\nLeave building!\n"
5658
}

0 commit comments

Comments
 (0)