Skip to content

Push produce no errors but is not working if the local repo has .github folder #2150

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

Open
annamalai-ofl opened this issue May 13, 2025 · 0 comments

Comments

@annamalai-ofl
Copy link

Summary

When using libgit2sharp to push an initial commit that includes a .github folder (with valid contents), the push fails silently — no error is thrown, and the remote is not updated. If the folder is renamed (e.g., to github), the push succeeds.

Steps to Reproduce

  1. Create a new local repo
  2. Add a .github/workflows/ci.yml file
  3. Commit
  4. Attempt to push to a GitHub remote (with or without authentication)

Observed Behavior

  • repo.Network.Push(...) does not throw
  • Remote is unchanged
  • If .github is renamed, push succeeds as expected

Expected Behavior

Push should either:

  • Succeed and update the remote, or
  • Throw an exception if push fails

Notes

  • Using latest LibGit2Sharp and .NET 6+
  • Changing .github to any other folder name works

Environment

  • LibGit2Sharp version: 0.31.0
  • OS: Windows
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant