Tested Confluence version: 5.4.1 Tested Git for Confluence version: 1.9.3 (100 users paid license)
Steps to reproduce the issue: 1. add a git attachment to the page, and choose the file from an non-master branch. 2. made a content change to the file, and commit/push the change to the remote repo. 3. wait for the sync job completed. 4. check the attachment version history, and download the attachment file. And you will still see the original version. And only one version in the attachment history. 5. add another git attachment to the same page, and choose the file from the master branch of the same repo. 6. repeat the step 2,3 and 4, you should see two versions for the 2nd attachment.
Also noticed in the confluence-home directory, the local repo is on the master branch by default inside the avisi-git-plugin-repositories directory.