Closed rhssk closed 5 years ago
Hello, @rhssk! I'm not quite sure I understand what benefit this brings. Currenty only the hidden files that start with .git
are copied because those are the only hidden files that exist when cloning the repository.
When using the --clone
parameter, only .git
, .gitattributes
, .gitignore
and .gitlab-ci.yml
hidden files get moved over. .editorconfig
remains in the temporary directory and [ -d "$repo_dir" ] && rmdir "$repo_dir"
fails with rmdir: failed to remove '/tmp/repo.XXXX': Directory not empty
.
It would be cleaner if all repo files were copied and script doesn't exit with 1.
Oh, you're right. Wow! I totally forgot about the .editorconfig
file. :astonished: I guess this is also related to #243.
Thanks for the PR, @rhssk!
See commit message.
Previous code suspiciously looks like it was intended to only move hidden files starting with
.git
. If that was really the reason (I can't imagine why though) a different approach might be needed.Cheers