wagon-git icon indicating copy to clipboard operation
wagon-git copied to clipboard

Uploading to bitbucket deletes all other files in repository

Open schlumpfling42 opened this issue 6 years ago • 1 comments

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 avatar Jun 10 '19 20:06 schlumpfling42

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?

schlumpfling42 avatar Jun 10 '19 23:06 schlumpfling42