-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Description
Describe the bug
I don't know where to report/ask advise for BitBucket specifically. I am reporting it here, perhaps someone can assist me that also work with BitBucket and git-lfs.
A new repository that uses Large files (and git install lfs and LFS files tracked) successfully logs in on git pull before LFS files are there, but any git push -u <remote> <branch> prompts for password, and on the 4th prompt of typing the password again again the repository will start pushing the files to LFS.
I tried this after always giving up after two tries, and assuming it doesn't want to authenticate, even though the same login will work for non-lfs repositories immediately.
I would like to know why it 'ignores' the first 3 logins, and the 4th login passes?
Is there anything I need to specifically do to make git-lfs work with BitBucket?
To Reproduce
Steps to reproduce the behavior:
- Clone the BitBucket repository.
- Install lfs :
git lfs install - Track LFS files you want to push:
git lfs track *.tar.gz git checkout -b NewBranch- Add generated
.gitattributes:git add .gitattributes - Add LFS file:
git add <file.tar.gz?> - `git commit -m "Added LFS files"
git push -u <remote> NewBranch- Prompt for password ... fails
- Prompt for password ... fails
- Prompt for password ... fails
- Prompt for password ... SUCCEEDS!!
Prompts below:
Password for 'https://<x>@bitbucket.org':
Password for 'https://<x>@bitbucket.org':
Password for 'https://<x>@bitbucket.org':
Password for 'https://<x>@bitbucket.org':
Uploading LFS objects: 100% (4/4), 987 MB | 8.5 MB/s, done.
Expected behavior
A successful first login of BitBucket when using git-lfs.
System environment
The version of your operating system, plus any relevant information about platform or configuration (e.g., container or CI usage, Cygwin, WSL, or non-Basic authentication). If relevant, include the output of git config -l as a code block.
Output of git lfs env
The output of running git lfs env as a code block.
Additional context
-
New added (after first commit) files to be pushed will ask 2/3/4 times for login
-
Followed these articles:
Use git lfs with BitBucket
Troubleshooting LFS with BitBucket