Skip to content

Commit 9b5a8a2

Browse files
committed
make sure existing files aren't written into (#384)
1 parent 07c1f07 commit 9b5a8a2

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

git-glob/tests/fixtures/make_baseline.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/bin/bash
22
set -eu -o pipefail
33

4-
54
git init -q
65
git config core.autocrlf false
76
git config core.ignorecase false

tests/tools/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ fn create_archive_if_not_on_ci(source_dir: &Path, archive: &Path, script_identit
177177
let archive = std::fs::OpenOptions::new()
178178
.write(true)
179179
.create(true)
180-
.append(false)
180+
.truncate(true)
181181
.open(archive)?;
182182
let mut xz_write = xz2::write::XzEncoder::new(archive, 3);
183183
std::io::copy(&mut &*buf, &mut xz_write)?;

0 commit comments

Comments
 (0)