Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'commit-tree.c')
-rw-r--r--commit-tree.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/commit-tree.c b/commit-tree.c
index b20957546a..93f3a57991 100644
--- a/commit-tree.c
+++ b/commit-tree.c
@@ -96,6 +96,21 @@ static void remove_special(char *p)
if (!c)
break;
}
+
+ /*
+ * Go back, and remove crud from the end: some people
+ * have commas etc in their gecos field
+ */
+ dst--;
+ while (--dst >= p) {
+ unsigned char c = *dst;
+ switch (c) {
+ case ',': case ';': case '.':
+ *dst = 0;
+ continue;
+ }
+ break;
+ }
}
static const char *month_names[] = {