Skip to content

Commit 2445327

Browse files
committed
Small improvements to script to clean up.
1 parent 74af76f commit 2445327

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

bin/downstream_pr.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,16 @@
33
if [ -z "$1" ]
44
then
55
echo "Usage: downstream_pr.sh <PR_number>"
6-
echo "Port a specified PR from the Aesara repo to the PyTensor repo. Will create a new branch, adapt and apply the upstream PR, and create a new PR to PyTensor."
6+
echo "Port a specified PR from the Aesara repo to the PyTensor repo. Will create a new branch, adapt and apply the upstream PR, and create a new PR to PyTensor. Requires a remote aesara."
77
exit 1
88
fi
99

10-
set -e
11-
10+
git am --abort
1211
git checkout main
12+
git branch -D downstream_$1
13+
git fetch aesara
14+
15+
set -e
1316
git pull origin main
1417
git checkout -b downstream_$1
1518

0 commit comments

Comments
 (0)