chiark
/
gitweb
/
~ianmdlvl
/
dgit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f403615
)
Test suite: lib t-untar of an edited tartree: do not hardlink
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 3 Jul 2016 22:00:16 +0000
(23:00 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 3 Jul 2016 22:12:37 +0000
(23:12 +0100)
Some of the tools we use, it turns out, do not update properly: they
overwrite in place. This can cause inadvertant changes to a tartree
opened for editing.
tests/lib
patch
|
blob
|
history
diff --git
a/tests/lib
b/tests/lib
index 7f459aa2cf2f258fc124de9fce0ceeb342ea1ddc..48bc237347fe00a525110bc5d8f788b2f1dd6ebd 100644
(file)
--- a/
tests/lib
+++ b/
tests/lib
@@
-134,7
+134,7
@@
t-untar () {
local tarfile=$1.tar
local edittree=$1.edit
if test -d "$edittree"; then
local tarfile=$1.tar
local edittree=$1.edit
if test -d "$edittree"; then
- cp -a
l
"$edittree"/* .
+ cp -a "$edittree"/* .
else
tar xf "$tarfile"
fi
else
tar xf "$tarfile"
fi