Skip to content

Commit 73b029a

Browse files
authored
Merge pull request #18 from jhodrien/old-git
Work with older versions of git
2 parents f07033b + d4f0af2 commit 73b029a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

post.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ fi
2020
if [[ ${CW_INSTALLATION_FILE_PATHS+defined} ]];then
2121
cp -r $CW_BUILD_TMPDIR/_inst_dir/previous_input* $CW_INSTALLATION_PREFIX/share
2222
fi
23-
echo "tag: $(git -C $SCRIPT_DIR describe --tags 2>/dev/null)" > $CW_INSTALLATION_PREFIX/share/VERSION.yml
24-
echo "commit: $(git -C $SCRIPT_DIR rev-parse --short HEAD 2>/dev/null)" >> $CW_INSTALLATION_PREFIX/share/VERSION.yml
23+
echo "tag: $(cd $SCRIPT_DIR; git describe --tags 2>/dev/null)" > $CW_INSTALLATION_PREFIX/share/VERSION.yml
24+
echo "commit: $(cd $SCRIPT_DIR; git rev-parse --short HEAD 2>/dev/null )" >> $CW_INSTALLATION_PREFIX/share/VERSION.yml
2525
echo "build-time: $(date)" >> $CW_INSTALLATION_PREFIX/share/VERSION.yml
2626

2727
cp $CW_BUILD_TMPDIR/conf.yaml $CW_INSTALLATION_PREFIX/share

0 commit comments

Comments
 (0)