mirror of
https://github.com/cpina/github-action-push-to-another-repository.git
synced 2024-12-21 23:56:09 -07:00
Restore the .git even in the code path without target_directory
This commit is contained in:
parent
66ead10846
commit
460cd93e14
|
@ -54,8 +54,6 @@ then
|
|||
echo "[+] Creating $TARGET_DIRECTORY if doesnt already exist"
|
||||
mkdir -p "$CLONE_DIR/$TARGET_DIRECTORY"
|
||||
|
||||
mv "$TEMP_DIR/.git" "$CLONE_DIR/.git"
|
||||
|
||||
echo "[+] Listing Current Directory Location"
|
||||
ls -al
|
||||
|
||||
|
@ -63,6 +61,8 @@ then
|
|||
ls -al /
|
||||
fi
|
||||
|
||||
mv "$TEMP_DIR/.git" "$CLONE_DIR/.git"
|
||||
|
||||
echo "[+] List contents of $SOURCE_DIRECTORY"
|
||||
ls "$SOURCE_DIRECTORY"
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user