Skip to content

Commit 3aa91d5

Browse files
author
Michael Wild
committed
fixup! Replace the stg script with an entry point defined in setup.py
Don't output current working directory to stdout in t/stg
1 parent 1a3c9cd commit 3aa91d5

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

t/stg

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@
33
# This script is only used by the tests so they can work without stgit being
44
# installed. It assumes PYTHONPATH to be set up correctly.
55

6-
SCRIPT_DIR=$(dirname "$0")
7-
cd $SCRIPT_DIR
8-
SCRIPT_DIR=$(pwd)
9-
cd -
10-
STGIT_ROOT="$(realpath $SCRIPT_DIR/..)"
6+
CUR_DIR="$(pwd)"
7+
SCRIPT_DIR="$(dirname "$0")"
8+
cd "$SCRIPT_DIR"
9+
SCRIPT_DIR="$(pwd)"
10+
cd "$CUR_DIR"
11+
STGIT_ROOT="$(realpath "$SCRIPT_DIR/..")"
1112

1213
# sanity check
1314
if test ! -f "$STGIT_ROOT/build/lib/stgit/main.py"; then

0 commit comments

Comments
 (0)