diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-08-16 16:04:21 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-08-16 16:25:54 +0100 |
commit | 2309367eb43cedd768da3f0ade7fcd9aeeff10e1 (patch) | |
tree | 491d9e3d521b756431307a673f637debaa20ba21 | |
parent | Don't define a default toolset, use the system/project one (diff) | |
download | netfs-gitfs-2309367eb43cedd768da3f0ade7fcd9aeeff10e1.tar.bz2 netfs-gitfs-2309367eb43cedd768da3f0ade7fcd9aeeff10e1.tar.xz netfs-gitfs-2309367eb43cedd768da3f0ade7fcd9aeeff10e1.zip |
Update branch names from master to main
-rw-r--r-- | src/repo.cpp | 2 | ||||
-rw-r--r-- | unittests/config.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/repo.cpp b/src/repo.cpp index 2dca141..2bced8a 100644 --- a/src/repo.cpp +++ b/src/repo.cpp @@ -22,7 +22,7 @@ operator/(const std::string & a, const std::string & b) } GitFS::Repo::Repo(const PropertyReader & properties) : - repo(Git::RepositoryOpenBare(properties("gitdir"))), commitish(properties("commitish") / "master"), isBranch(false), + repo(Git::RepositoryOpenBare(properties("gitdir"))), commitish(properties("commitish") / "main"), isBranch(false), resolvedAt(0), gid(properties("gid") / "root"), uid(properties("uid") / "root") { if (commitish.length() == GIT_OID_HEXSZ) { diff --git a/unittests/config.cpp b/unittests/config.cpp index f6a914e..b84304b 100644 --- a/unittests/config.cpp +++ b/unittests/config.cpp @@ -42,7 +42,7 @@ const auto DIRS = btdata::make({"/", "/src", "/unittests/fixtures"}); const auto FILES = btdata::make({"/Jamroot.jam", "/src/repo.cpp", "/unittests/fixtures/executable"}); const auto LINKS = btdata::make({"/unittests/fixtures/symlink"}); const auto COMMITISHS - = btdata::make({"", "master", "origin/master", "testcommit", "7a0ccb40084c3ab31d9856e7f689c0514c28c930"}); + = btdata::make({"", "main", "origin/main", "testcommit", "7a0ccb40084c3ab31d9856e7f689c0514c28c930"}); BOOST_DATA_TEST_CASE(uid_gid_override_getattr, USERS * GROUPS *(DIRS + FILES + LINKS), uid, gid, path) { |