Hi,
We are using Bitbucket, and I’m searching for a solution for placing large files like media files, help files etc, out of the bitbucket repository.
I’ve came across your solution, and I have installed it.
What I want is that regular files will be stored in BitBucket, while LFS files will be stored locally on a server on our network.
Using SCM-Manager, I’ve created a repository, and I was able to push files to it.
I then configured the .gitattributes file in order to define what files are considered to be LFS.
Committed and pushed the files, and it worked:
Pushing to http://server5.unitronics.com:8080/scm/repo/saragani/lfs
Uploading LFS objects: 100% (1/1), 50 B | 0 B/s, done.
POST git-receive-pack (626 bytes)
remote: Updating references: 100% (1/1)
remote: Updating references: 100% (1/1)
Branch ‘main’ set up to track remote branch ‘main’ from ‘origin’.
To http://server5.unitronics.com:8080/scm/repo/saragani/lfs
b35f642…63d6fca main → main
updating local tracking ref ‘refs/remotes/origin/main’
Completed successfully.
So now I’m trying to simulate the situation where files are stored in one repository while LFS files are stored in another one.
I already pushed an empty .lfsconfig, and not I’ve updated it’s content to be:
[lfs]
url = http://server5.unitronics.com:8080/scm/repo/saragani/lfs
Theoretically, it should have worked, since I’m pointing the lfs to the same location.
I’ve changed one of the lfs files, committed and pushed, but I’m getting an error:
git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks commit -q -F C:\Users\Itais\AppData\Local\Temp\ky54h1bb.hss
git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks -c lfs.customtransfer.bitbucket-media-api.path=git-lfs-bitbucket-media-api push -v --tags --set-upstream origin main:main
Pushing to http://server5.unitronics.com:8080/scm/repo/saragani/lfs
Uploading LFS objects: 0% (0/1), 0 B | 0 B/s, done.
batch response: Client error: http://server5.unitronics.com:8080/scm/repo/saragani/lfs/objects/batch
error: failed to push some refs to ‘http://server5.unitronics.com:8080/scm/repo/saragani/lfs’
Completed with errors, see above.
What am I missing?
Thanks