changeset 107:5cfaabfe9cb9

core: fix deleting newly added files from subdirectory
author Harvey Chapman <hchapman@3gfp.com>
date Wed, 11 Mar 2015 15:36:04 -0400
parents 71f7fa103401
children 820a210604bb
files crecord/crecord_core.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/crecord/crecord_core.py
+++ b/crecord/crecord_core.py
@@ -133,7 +133,7 @@
                           lambda key: key in backups)
             # remove newly added files from 'clean' repo (so patch can apply)
             for f in newly_added_backups:
-                os.unlink(f)
+                os.unlink(repo.wjoin(f))
 
             # 3b. (apply)
             if dopatch: