Skip to content

Commit

Permalink
Merge branch 'maint' to synchronize with 1.5.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Junio C Hamano committed Mar 28, 2007
2 parents 03bcaac + 9529a25 commit 0a98f9d
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 3 deletions.
22 changes: 22 additions & 0 deletions Documentation/RelNotes-1.5.0.6.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
GIT v1.5.0.6 Release Notes
==========================

Fixes since v1.5.0.5
--------------------

* Bugfixes

- a handful small fixes to gitweb.

- build procedure for user-manual is fixed not to require locally
installed stylesheets.

- "git commit $paths" on paths whose earlier contents were
already updated in the index were failing out.

* Documentation

- user-manual has better cross references.

- gitweb installation/deployment procedure is now documented.

7 changes: 5 additions & 2 deletions commit.c
Original file line number Diff line number Diff line change
Expand Up @@ -654,15 +654,18 @@ static char *get_header(const struct commit *commit, const char *key)
static char *replace_encoding_header(char *buf, const char *encoding)
{
char *encoding_header = strstr(buf, "\nencoding ");
char *header_end = strstr(buf, "\n\n");
char *end_of_encoding_header;
int encoding_header_pos;
int encoding_header_len;
int new_len;
int need_len;
int buflen = strlen(buf) + 1;

if (!encoding_header)
return buf; /* should not happen but be defensive */
if (!header_end)
header_end = buf + buflen;
if (!encoding_header || encoding_header >= header_end)
return buf;
encoding_header++;
end_of_encoding_header = strchr(encoding_header, '\n');
if (!end_of_encoding_header)
Expand Down
2 changes: 1 addition & 1 deletion git-commit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ t,)
if test -z "$initial_commit"
then
cp "$THIS_INDEX" "$TMP_INDEX"
GIT_INDEX_FILE="$TMP_INDEX" git-read-tree -m HEAD
GIT_INDEX_FILE="$TMP_INDEX" git-read-tree -i -m HEAD
else
rm -f "$TMP_INDEX"
fi || exit
Expand Down

0 comments on commit 0a98f9d

Please sign in to comment.