Skip to content

Commit 088f31e

Browse files
authored
Merge pull request #76 from thewtex/github-link
ENH: Remove pull request preview link for git review-push
2 parents 4f3f354 + 057893e commit 088f31e

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

Utilities/GitSetup/git-review-push

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -80,18 +80,5 @@ echo "Pushing to $remote"
8080
push_stdout=$(git push --porcelain $force $dry_run "$remote" $refspecs); push_exit=$?
8181
echo "$push_stdout"
8282

83-
if test $push_exit -eq 0; then
84-
topic="$(git symbolic-ref HEAD | sed -e 's|^refs/heads/||')"
85-
pushurl="$(git config --get remote."$remote".pushurl || git config --get remote."$remote".url)"
86-
username=$(echo $pushurl | sed -n -e "s/git@$host:\([[:alnum:]]\+\).*/\1/p")
87-
if test -n "$username"; then
88-
echo '
89-
Preview the pull request by visiting:
90-
91-
https://'"$host"'/'"$organization_name"'/'"$repo_name"'/compare/master...'"$username"':'"$topic"'
92-
'
93-
fi
94-
fi
95-
9683
# Reproduce the push exit code.
9784
exit $push_exit

0 commit comments

Comments
 (0)