s0 / git-publish-subdir-action

GitHub Action to push a subdirectory as a branch to any git repo (e.g. for GitHub Pages)
https://github.com/marketplace/actions/push-git-subdirectory-as-branch
MIT License
208 stars 36 forks source link

cp: cannot overwrite directory './.git' with non-directory #76

Closed Atlinx closed 2 years ago

Atlinx commented 2 years ago

I'm getting the error cp: cannot overwrite directory './.git' with non-directory for some reason when it's copying over the files.

Atlinx commented 2 years ago

Fixed! I had my FOLDER env variable set wrong. The folder pointed to a submodule, which caused this error.