mschonaker / wagon-git

Git Wagon for Apache Maven
http://synergian.github.io/wagon-git/
83 stars 32 forks source link

Uploading to bitbucket deletes all other files in repository #56

Open schlumpfling42 opened 5 years ago

schlumpfling42 commented 5 years ago

I'm using wagon-git in my gradle project. It was working fine for a bit, but currently everytime I want to push a new version, it deletes all the other files in the repository. I have to revert the branch to a previous revision to fix the issue. How do I fix this? How can I get it working again? build.gradle

repositories { mavenLocal() mavenCentral() maven { url "https://raw.github.com/synergian/wagon-git/releases" } } ... configurations { deployerJars } ... uploadArchives { configuration = configurations.archives repositories.mavenDeployer { configuration = configurations.deployerJars repository(url: "git:releases://https://${bitbucketUsername}:${bitbucketPassword}@bitbucket.org/.git") } }

schlumpfling42 commented 5 years ago

I found the git folder that keeps the state and deleted it and it started working again. Is there a flag I can set to have it start with a clean state?