Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Nothing to commit, working tree clean" when there are clearly files to commit and push #104

Open
Yijia-Chen opened this issue May 31, 2023 · 2 comments
Labels
bug Something isn't working information needed More details are required for clarity or further action on this issue

Comments

@Yijia-Chen
Copy link

Yijia-Chen commented May 31, 2023

I was using this repo to clone an entire private repo to another private repo to wipe the commit history. All the steps till git status were successful — the hook listed all the files and folders in the root directory. However, the git status stage had the following result:
image
Which lead to nothing being committed and pushed. The target repository is clearly different from the source repository, and the target branch is present. Would love to get help on this.

@Yijia-Chen Yijia-Chen added the bug Something isn't working label May 31, 2023
@cpina
Copy link
Owner

cpina commented Jun 1, 2023

That's strange - I will try to think of something later / tomorrow...

@cpina
Copy link
Owner

cpina commented Jun 3, 2023

Could you copy-paste your configuration of the github-action?

Could you double check if you are passing any SOURCE_DIRECTORY or DESTINATION_DIRECTORY? I'm thinking if the repositories are different but you are using these variables and ending that no changes are copied because they are set somewhere that has the same contents. Regardless of this: copy-paste the configuration to see if I spot something strange.

If I don't spot anything: I will create a new branch with debugging for this issue (just some ls -l in some places). I am not at home and I might be a bit slow answering queries. If you want a bit faster you can fork and add "ls -l" in the entrypoint.sh to see if you spot something (or just wait and I'll help...).

@cpina cpina added the information needed More details are required for clarity or further action on this issue label Aug 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working information needed More details are required for clarity or further action on this issue
Projects
None yet
Development

No branches or pull requests

2 participants