From 64d819851ffee747c676d87899ceccab1e83656c Mon Sep 17 00:00:00 2001 From: "brian m. carlson" Date: Mon, 29 Jun 2020 16:03:04 +0000 Subject: [PATCH] t: be explicit about the branch to use for submodules When we process submodules, we want to use the default branch, but we don't know what that is, so explicitly set the default branch. --- t/t-submodule-lfsconfig.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/t-submodule-lfsconfig.sh b/t/t-submodule-lfsconfig.sh index c13de85d..40eb2249 100755 --- a/t/t-submodule-lfsconfig.sh +++ b/t/t-submodule-lfsconfig.sh @@ -33,7 +33,7 @@ begin_test "submodule env with .lfsconfig" setup_remote_repo "$reponame" clone_repo "$reponame" repo git config -f .lfsconfig lfs.url "$GITSERVER/$lfsname.git/info/lfs" - git submodule add "$GITSERVER/$submodname" sub + git submodule add -b master "$GITSERVER/$submodname" sub git submodule update git lfs track "*.dat" mkdir dir