mirror of
https://github.com/cpina/github-action-push-to-another-repository.git
synced 2025-09-03 15:35:45 -06: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",
|
||||
# including "." and with the exception of ".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"
|
||||
fi
|
||||
mv "$CLONE_DIR/.gitattributes" "$TEMP_DIR/.gitattributes"
|
||||
|
||||
|
||||
# $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 [ "$KEEP_GITATTRIBUTES" = "true" ]
|
||||
then
|
||||
echo "[+] Restoring .gitattributes file"
|
||||
mv "$TEMP_DIR/.gitattributes" "$CLONE_DIR/.gitattributes"
|
||||
fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user