mirror of
https://github.com/cpina/github-action-push-to-another-repository.git
synced 2025-01-10 00:59:01 -07:00
remove one check, add log
This commit is contained in:
parent
3f57d6e539
commit
8aec05af30
|
@ -100,12 +100,7 @@ TEMP_DIR=$(mktemp -d)
|
||||||
# but not anymore. Otherwise we had to remove the files from "$CLONE_DIR",
|
# but not anymore. Otherwise we had to remove the files from "$CLONE_DIR",
|
||||||
# including "." and with the exception of ".git/"
|
# including "." and with the exception of ".git/"
|
||||||
mv "$CLONE_DIR/.git" "$TEMP_DIR/.git"
|
mv "$CLONE_DIR/.git" "$TEMP_DIR/.git"
|
||||||
|
|
||||||
# If enabled, copy .gitattributes file to keep LFS working.
|
|
||||||
if [ "$KEEP_GITATTRIBUTES" = "true" ]
|
|
||||||
then
|
|
||||||
mv "$CLONE_DIR/.gitattributes" "$TEMP_DIR/.gitattributes"
|
mv "$CLONE_DIR/.gitattributes" "$TEMP_DIR/.gitattributes"
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
# $TARGET_DIRECTORY is '' by default
|
# $TARGET_DIRECTORY is '' by default
|
||||||
|
@ -127,6 +122,7 @@ mv "$TEMP_DIR/.git" "$CLONE_DIR/.git"
|
||||||
# If enabled, restore .gitattributes file to keep LFS working.
|
# If enabled, restore .gitattributes file to keep LFS working.
|
||||||
if [ "$KEEP_GITATTRIBUTES" = "true" ]
|
if [ "$KEEP_GITATTRIBUTES" = "true" ]
|
||||||
then
|
then
|
||||||
|
echo "[+] Restoring .gitattributes file"
|
||||||
mv "$TEMP_DIR/.gitattributes" "$CLONE_DIR/.gitattributes"
|
mv "$TEMP_DIR/.gitattributes" "$CLONE_DIR/.gitattributes"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user