summaryrefslogtreecommitdiff
path: root/fast-import.c
diff options
context:
space:
mode:
authorSverre Rabbelier <srabbelier@gmail.com>2010-03-29 16:48:25 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-03-31 16:37:26 (GMT)
commit580d5f83e71f7f9e61cdb181e21c10b09c81f6e5 (patch)
tree901b9c05467736f8986afc3ec03c354ccb69057f /fast-import.c
parentdf61c8897950759bfe93c2b9d828487bcc7fbb6b (diff)
downloadgit-580d5f83e71f7f9e61cdb181e21c10b09c81f6e5.zip
git-580d5f83e71f7f9e61cdb181e21c10b09c81f6e5.tar.gz
git-580d5f83e71f7f9e61cdb181e21c10b09c81f6e5.tar.bz2
fast-import: always create marks_file directories
CC: "Shawn O. Pearce" <spearce@spearce.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'fast-import.c')
-rw-r--r--fast-import.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fast-import.c b/fast-import.c
index 309f2c5..129a786 100644
--- a/fast-import.c
+++ b/fast-import.c
@@ -2707,6 +2707,7 @@ static void option_import_marks(const char *marks, int from_stream)
}
import_marks_file = make_fast_import_path(marks);
+ safe_create_leading_directories_const(import_marks_file);
import_marks_file_from_stream = from_stream;
}
@@ -2737,6 +2738,7 @@ static void option_active_branches(const char *branches)
static void option_export_marks(const char *marks)
{
export_marks_file = make_fast_import_path(marks);
+ safe_create_leading_directories_const(export_marks_file);
}
static void option_export_pack_edges(const char *edges)