Specify GIT_DIR for git operations
When running with the git option safe.bareRepository set to explicit, we won’t have autodetection of the current working git directory. Instead, we already know the directory path so we should be setting the environment variable GIT_DIR or passing the –git-dir option to all of our invocations of git.
Example error:
024-04-03T15:44:33.285-07:00 INFO service Fetched rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5 from z6MkvFZt8jUpr4wHW5Z5VFMtQPra84bqsuC3VEjARJigAoc8 successfully
fatal: cannot use bare repository '/home/wak/.radicle/storage/z3gqcJUoA1n9HaHKufZs5FCSGazv5' (safe.bareRepository is 'explicit')
2024-04-03T15:44:34.937-07:00 INFO service Fetched rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5 from z6MkrLMMsiPWUcNPHcRajuMi9mDfYckSoJyPwwnknocNYPm7 successfully
fatal: cannot use bare repository '/home/wak/.radicle/storage/z3gqcJUoA1n9HaHKufZs5FCSGazv5' (safe.bareRepository is 'explicit')
2024-04-03T15:44:35.757-07:00 INFO service Fetched rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5 from z6Mkmqogy2qEM2ummccUthFEaaHvyYmYBYh3dbe9W4ebScxo successfully
2024-04-03T15:44:38.310-07:00 INFO service Routing table updated for rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5 with seed z6MkuLX1eWTzqzwfYnRRhgHM9EHTSXnbw9sKUa1QZCdx2c4f
fatal: cannot use bare repository '/home/wak/.radicle/storage/z3gqcJUoA1n9HaHKufZs5FCSGazv5' (safe.bareRepository is 'explicit')
2024-04-03T15:44:40.547-07:00 INFO service Fetched rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5 from z6MkrLMMsiPWUcNPHcRajuMi9mDfYckSoJyPwwnknocNYPm7 successfully
2024-04-03T15:44:42.532-07:00 WARN cob Unable to load change tree from commit 342b05f88d0ab9e81b03db9427b1d641cc5cb749: a 'manifest' file was expected be found in 'fe1f7ad1ee07c8c2193b422304d8d0b0dac7f886'
2024-04-03T15:44:42.532-07:00 WARN cob Unable to load change tree from commit 07e455dc597b7c368ce658ba65b866a92b9a88c4: the 'change' found at '07e455dc597b7c368ce658ba65b866a92b9a88c4' was not signed
2024-04-03T15:44:42.533-07:00 WARN cob Unable to load change tree from commit d8f8d296057828b90ade8b875e121a0831f7dc43: a 'manifest' file was expected be found in 'ed0d42bf17883cffc8492cac5c43449a4b59d433'
2024-04-03T15:44:42.533-07:00 WARN cob Unable to load change tree from commit a83d7fb0889fd4ab3c39df3b97eea3e1654b524d: the 'change' found at 'a83d7fb0889fd4ab3c39df3b97eea3e1654b524d' was not signed
fatal: cannot use bare repository '/home/wak/.radicle/storage/z3gqcJUoA1n9HaHKufZs5FCSGazv5' (safe.bareRepository is 'explicit')
2024-04-03T15:44:42.592-07:00 INFO service Fetched rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5 from z6Mkmqogy2qEM2ummccUthFEaaHvyYmYBYh3dbe9W4ebScxo successfully
fatal: cannot use bare repository '/home/wak/.radicle/storage/z3gqcJUoA1n9HaHKufZs5FCSGazv5' (safe.bareRepository is 'explicit')
2024-04-03T15:44:44.152-07:00 INFO service Fetched rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5 from z6MkrLMMsiPWUcNPHcRajuMi9mDfYckSoJyPwwnknocNYPm7 successfully