Skip to content
Snippets Groups Projects
Commit 7ea28273 authored by Vicente Bolea's avatar Vicente Bolea
Browse files

LFS: Set default url to the current origin url

parent 1485af6e
Branches
Tags
2 merge requests!2615Draft: DONTMERGE ME: TEST FOR 1.7.0-rc1 is our 9th official release of VTK-m.,!2532LFS: Set default url to the current origin url
Checking pipeline status
......@@ -35,10 +35,11 @@ git config hooks.SetupForDevelopment ${SetupForDevelopment_VERSION}
# Setup VTK-m-specifc LFS config
#
# Disable lfsurl if our origin points to the main repo
if git remote get-url origin | grep -Poq '^(https://|git@)gitlab.kitware.com(/|:)vtk/vtk-m.git$'
OriginURL=$(git remote get-url origin)
if [[ "$OriginURL" =~ ^(https://|git@)gitlab\.kitware\.com(/|:)vtk/vtk-m\.git$ ]]
then
# Disable this setting which overrides every remote/url lfs setting
git config --local lfs.url ""
git config --local lfs.url "${OriginURL}"
# Those settings are only available for newer git-lfs releases
git config --local remote.lfspushdefault gitlab
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment