Skip to content

Commit 2b0f4d5

Browse files
committed
Be more specific about the git dir
1 parent 1c267c6 commit 2b0f4d5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎jenkins.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ npm install
66
(cd node_modules/matrix-react-sdk && npm run build) # npm doesn't do this when dependencies point at github.com >:(
77
npm run build # Dumps artificats to /vector
88
rm vector-*.tar.gz || true # rm previous artifacts without failing if it doesn't exist
9-
REACT_SHA=$(cd node_modules/matrix-react-sdk && git rev-parse --short=12 HEAD) # use the ACTUAL SHA rather than assume develop
9+
REACT_SHA=$(git --git-dir node_modules/matrix-react-sdk/.git rev-parse --short=12 HEAD) # use the ACTUAL SHA rather than assume develop
1010
tar -zcvhf vector-$GIT_COMMIT-react-$REACT_SHA.tar.gz vector #g[z]ip, [c]reate archive, [v]erbose, [f]ilename, [h]ard-dereference (do not archive symlinks)

0 commit comments

Comments
 (0)