Commit Graph

4 Commits

Author SHA1 Message Date
brian m. carlson
9e006ac4e2
Rename default branch in tests to "main"
Currently, our default branch in tests is "master".  This is the Git
default, but the Git default will likely change in the future, so it
makes sense to update our testsuite to be explicit about the branch
name.  We'll ensure this continues by building against older versions of
Git as well as newer versions.

We use "main" for the new branch name, since that's the proposed value
upstream.

This commit was made entirely by automated means using the following
command:

  git grep -l master t | xargs sed -i -e 's/master/main/g'
2020-07-08 15:38:17 +00:00
brian m. carlson
2a3581e1c7
Ensure proper alternate handling with gitobj
There are two ways to specify an alternate in Git: via the repository
file or via the environment. gitobj recently learned how to accept the
contents of an environment variable and use it, so pass the environment
variable when creating a new object database.

When performing a fetch, we don't use the object scanner, but we do when
performing a push. To make sure that we're exercising the object scanner
and gitobj adequately, simulate a push using alternates as well.
2019-08-15 17:39:32 +00:00
brian m. carlson
bce5ad9af0
t: make alternates test work on Windows
This test works fine on Unix systems, but fails on Windows. This occurs
because the MSYS environment uses Unix-style paths, but Git wants
Windows-style paths in its environment and alternates files. Convert the
paths to an appropriate format to ensure this test passes on Windows as
well.
2019-08-15 17:39:32 +00:00
brian m. carlson
6aa04797ea
t: ensure alternates test runs automatically
The test for alternates was named test-alternates.sh, but only tests
matching "t-*.sh" are run automatically. Since we want to make sure that
alternates continue to work, rename this file. Update the source command
to use the correct directory as well.
2019-08-15 17:39:32 +00:00