##// END OF EJS Templates
test-convert-git: remove the read-only attribute of repository files...
Eduard-Cristian Stefan -
r16893:46ccd44d default
parent child Browse files
Show More
@@ -283,9 +283,12 b' damage git repository and convert again'
283
283
284 $ cat > damage.py <<EOF
284 $ cat > damage.py <<EOF
285 > import os
285 > import os
286 > import stat
286 > for root, dirs, files in os.walk('git-repo4/.git/objects'):
287 > for root, dirs, files in os.walk('git-repo4/.git/objects'):
287 > if files:
288 > if files:
288 > path = os.path.join(root, files[0])
289 > path = os.path.join(root, files[0])
290 > if os.name == 'nt':
291 > os.chmod(path, stat.S_IWUSR)
289 > os.remove(path)
292 > os.remove(path)
290 > break
293 > break
291 > EOF
294 > EOF
General Comments 0
You need to be logged in to leave comments. Login now