wip5 fix spy log perms
This commit is contained in:
parent
47912bc6b5
commit
43c7a6e46d
1 changed files with 5 additions and 0 deletions
|
|
@ -8917,6 +8917,11 @@ mod tests {
|
|||
fs::set_permissions(&frozen_source_root, fs::Permissions::from_mode(0o700))?;
|
||||
|
||||
let log = temp.path().join("git-invocations.log");
|
||||
// Pre-created and world-writable: the spy runs under the
|
||||
// unprivileged Git identity, which cannot create a new file in this
|
||||
// root-owned 0755 directory, only append to one that already exists.
|
||||
fs::write(&log, b"")?;
|
||||
fs::set_permissions(&log, fs::Permissions::from_mode(0o666))?;
|
||||
let spy = temp.path().join("git-spy.sh");
|
||||
fs::write(
|
||||
&spy,
|
||||
|
|
|
|||
Loading…
Reference in a new issue