We are a small team (3 persons) but we use Bitbucket every day (39 repositories), and JIRA (1x 25 licence) and Confluence, thanks for you amazing job!
But we have a huge problem on almost every repository. After few weeks, we cannot pull the latest commits.
From https://email@example.com/repo_user/repo.git * branch master -> FETCH_HEAD There are no candidates for merging among the refs that you just fetched. Generally this means that you provided a wildcard refspec which had no matches on the remote end.
Our config file is:
[core] repositoryformatversion = 0 filemode = true bare = false logallrefupdates = true [remote "origin"] url = firstname.lastname@example.org:repo_user/repo.git fetch = +refs/heads/*:refs/remotes/origin/* [remote "original"] url = https://email@example.com/repo_user/repo.git fetch = +refs/heads/*:refs/remotes/original/* [branch "master"] remote = origin merge = refs/heads/master [user] name = Prod email = firstname.lastname@example.org
Our solution? Create an another repository (ex: "repo2") and push an init commit from complete source "repo". It's very dirty, I know.
So, can you help us? This problem occurs only on Bitbucket repository and we don't want to change.
Of course, we tried: - http://stackoverflow.com/questions/5131105/pull-all-unfetched-changes-from-git-repository - http://stackoverflow.com/questions/13799108/git-wildcard-refspec-with-no-match-on-remote-when-pulling