git » abk » commit 2303a44

Always use a complete path for destination directory.

author
2005-03-03 00:43:37 UTC
committer
2005-03-03 00:43:37 UTC
parent d6d7f09ce974efc5de3f8e77bce1c8b92f57905c

Always use a complete path for destination directory.

abk +3 -0

diff --git a/abk b/abk
index 6247df8..cd70312 100644
--- a/abk
+++ b/abk
@@ -312,6 +312,9 @@ def make_sync(src_path, srcidx_path, dst_path, dstidx_path):
 	while src_path[-1] == '/' and src_path != '/':
 		src_path = src_path[:-1]
 
+	# destination is always a complete path
+	dst_path = os.path.join(os.getcwd(), dst_path)
+
 	# move to the source's parent, and use the new source so we
 	# create only one level directories.
 	if src_path != '/':