Skip to content

Commit 6eefa5e

Browse files
committed
uncommited stuff
1 parent 57f09c0 commit 6eefa5e

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,4 +83,4 @@ jobs:
8383
---
8484

8585
### Credits
86-
Inspired by *Graphite* and *Gerrit* workflows but implemented with plain git + GitHub CLI.
86+
Inspired by *Graphite* and *Gerrit* workflows but implemented with plain git + GitHub CLI.

update-pr-stack.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ skip_if_clean() {
3030
# If BASE is already an ancestor of BRANCH *and*
3131
# the squash commit is already in history, we're done.
3232
git merge-base --is-ancestor "origin/$BASE" "origin/$BRANCH" \
33-
&& git merge-base --is-ancestor "$SQUASH_COMMIT" "origin/$BRANCH"
33+
&& git merge-base --is-ancestor SQUASH_COMMIT "origin/$BRANCH"
3434
}
3535

3636
format_branch_list_for_text() {
@@ -62,8 +62,8 @@ update_direct_target() {
6262
CONFLICTS+=("origin/$MERGED_BRANCH")
6363
git merge --abort
6464
fi
65-
if ! log_cmd git merge --no-edit "${SQUASH_COMMIT}~"; then
66-
CONFLICTS+=("${SQUASH_COMMIT}~")
65+
if ! log_cmd git merge --no-edit SQUASH_COMMIT~; then
66+
CONFLICTS+=( "$(git rev-parse SQUASH_COMMIT~)" )
6767
git merge --abort
6868
fi
6969

@@ -75,6 +75,7 @@ update_direct_target() {
7575
format_branch_list_for_text "${CONFLICTS[@]}"
7676
echo
7777
echo "into this branch while updating the PR stack and hit conflicts."
78+
echo
7879
echo "#### How to resolve"
7980
echo '```bash'
8081
echo "git fetch origin"

0 commit comments

Comments
 (0)