We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf291e1 commit 4b0f50eCopy full SHA for 4b0f50e
test/testhelpers.sh
@@ -72,6 +72,15 @@ delete_local_object() {
72
rm "$f"
73
}
74
75
+# corrupt_local_object corrupts the local storage for an oid
76
+# $ corrupt_local_object "some-oid"
77
+corrupt_local_object() {
78
+ local oid="$1"
79
+ local cfg=`git lfs env | grep LocalMediaDir`
80
+ local f="${cfg:14}/${oid:0:2}/${oid:2:2}/$oid"
81
+ cp /dev/null "$f"
82
+}
83
+
84
85
# check that the object does not exist in the git lfs server. HTTP log is
86
# written to http.log. JSON output is written to http.json.
0 commit comments