You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: nipype-auto-conv/generate
+25-9Lines changed: 25 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,8 @@ set -e
4
4
conv_dir=$(dirname $0)
5
5
6
6
CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD)
7
+
AUTO_CONV_SUFFIX="-auto-conv"
8
+
REBASED_SUFFIX="-rebased-on-auto-conv"
7
9
8
10
if! git diff-index --quiet HEAD --;then
9
11
echo"Current branch '$CURRENT_BRANCH' has uncommitted changes. Please commit or stash them before proceeding."
@@ -12,24 +14,38 @@ fi
12
14
13
15
echo"Automatically converting Nipype tasks to Pydra tasks..."
14
16
15
-
echo"Apply latest changes to nipype-auto-conv specs to auto-conv branch..."
16
-
git fetch origin auto-conv ||echo"Wasn't able to fetch origin/auto-conv, please check your internet connection"
17
-
git checkout -b ${CURRENT_BRANCH}-auto-conv
17
+
echo"Create '$CURRENT_BRANCH$REBASED_SUFFIX' and '$CURRENT_BRANCH$AUTO_CONV_SUFFIX' branches if not present and switch to $CURRENT_BRANCH$AUTO_CONV_SUFFIX"
18
+
echo"NB: $CURRENT_BRANCH$AUTO_CONV_SUFFIX will contain the conversion specs from '$CURRENT_BRANCH' and the auto-converted tasks,"
19
+
echo"wherease '$CURRENT_BRANCH$REBASED_SUFFIX' will be the changes in the current branch rebased on that"
0 commit comments