Uploading to bitbucket deletes all other files in repository
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/
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?