Skip to content

Commit 3085d13

Browse files
fix: add log message to post-checkout hook for existing branches on origin
1 parent 8966b14 commit 3085d13

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.husky/post-checkout

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ esac
2121

2222
# Only run when current branch does not exist on origin (treat as new local branch)
2323
if git ls-remote --heads origin "$CURRENT_BRANCH" 2>/dev/null | grep -q .; then
24+
echo "post-checkout: $CURRENT_BRANCH exists on origin, skipping merge."
2425
exit 0
2526
fi
2627

0 commit comments

Comments
 (0)