[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Monotone-devel] [PATCH] git_export: improve mark import when file is em
From: |
Felipe Contreras |
Subject: |
[Monotone-devel] [PATCH] git_export: improve mark import when file is empty |
Date: |
Sun, 29 Nov 2009 20:40:25 +0200 |
If the marks file is empty, git_export will complain about the format.
Instead, we should ignore the marks, just like git fast-import does.
Signed-off-by: Felipe Contreras <address@hidden>
---
git_export.cc | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/git_export.cc b/git_export.cc
index 6b4fcdc..ccee591 100644
--- a/git_export.cc
+++ b/git_export.cc
@@ -89,6 +89,7 @@ import_marks(system_path const & marks_file,
data mark_data;
read_data(marks_file, mark_data);
istringstream marks(mark_data());
+ marks.peek();
while (!marks.eof())
{
char c;
--
1.6.6.rc0.63.g0471c
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Monotone-devel] [PATCH] git_export: improve mark import when file is empty,
Felipe Contreras <=