Skip to content

Commit

Permalink
Sync with 1.7.2.1
Browse files Browse the repository at this point in the history
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Junio C Hamano committed Jul 27, 2010
2 parents 9a3028b + 2aedccd commit ba9523e
Show file tree
Hide file tree
Showing 12 changed files with 89 additions and 10 deletions.
16 changes: 16 additions & 0 deletions Documentation/RelNotes-1.7.0.7.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Git v1.7.0.7 Release Notes
==========================

Fixes since v1.7.0.6
--------------------

* "make NO_CURL=NoThanks install" was broken.

* An overlong line after ".gitdir: " in a git file caused out of bounds
access to an array on the stack.

* "git config --path conf.var" to attempt to expand a variable conf.var
that uses "~/" short-hand segfaulted when $HOME environment variable
was not set.

And other minor fixes and documentation updates.
9 changes: 9 additions & 0 deletions Documentation/RelNotes-1.7.1.2.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,12 @@ Fixes since v1.7.1.1

* "git rev-parse --parseopt --stop-at-non-option" did not stop at non option
when --keep-dashdash was in effect.

* An overlong line after ".gitdir: " in a git file caused out of bounds
access to an array on the stack.

* "git config --path conf.var" to attempt to expand a variable conf.var
that uses "~/" short-hand segfaulted when $HOME environment variable
was not set.

And other minor fixes and documentation updates.
25 changes: 25 additions & 0 deletions Documentation/RelNotes-1.7.2.1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
Git v1.7.2.1 Release Notes
==========================

Fixes since v1.7.2
------------------

* "git instaweb" wasn't useful when your Apache was installed under a
name other than apache2 (e.g. "httpd").

* Similarly, "git web--browse" (invoked by "git help -w") learned that
chrome browser is sometimes called google-chrome.

* An overlong line after ".gitdir: " in a git file caused out of bounds
access to an array on the stack.

* "git config --path conf.var" to attempt to expand a variable conf.var
that uses "~/" short-hand segfaulted when $HOME environment variable
was not set.

* Documentation on Cygwin failed to build.

* The error message from "git pull blarg" when 'blarg' is an unknown
remote name has been improved.

And other minor fixes and documentation updates.
9 changes: 6 additions & 3 deletions Documentation/git.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,20 +44,23 @@ unreleased) version of git, that is available from 'master'
branch of the `git.git` repository.
Documentation for older releases are available here:

* link:v1.7.2/git.html[documentation for release 1.7.2]
* link:v1.7.2.1/git.html[documentation for release 1.7.2.1]

* release notes for
link:RelNotes-1.7.2.1.txt[1.7.2.1],
link:RelNotes-1.7.2.txt[1.7.2].

* link:v1.7.1.1/git.html[documentation for release 1.7.1.1]
* link:v1.7.1.2/git.html[documentation for release 1.7.1.2]

* release notes for
link:RelNotes-1.7.1.2.txt[1.7.1.2],
link:RelNotes-1.7.1.1.txt[1.7.1.1],
link:RelNotes-1.7.1.txt[1.7.1].

* link:v1.7.0.6/git.html[documentation for release 1.7.0.6]
* link:v1.7.0.7/git.html[documentation for release 1.7.0.7]

* release notes for
link:RelNotes-1.7.0.7.txt[1.7.0.7],
link:RelNotes-1.7.0.6.txt[1.7.0.6],
link:RelNotes-1.7.0.5.txt[1.7.0.5],
link:RelNotes-1.7.0.4.txt[1.7.0.4],
Expand Down
2 changes: 1 addition & 1 deletion GIT-VERSION-GEN
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh

GVF=GIT-VERSION-FILE
DEF_VER=v1.7.2
DEF_VER=v1.7.2.GIT

LF='
'
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2254,6 +2254,7 @@ check-docs::
documented,gitglossary | \
documented,githooks | \
documented,gitrepository-layout | \
documented,gitrevisions | \
documented,gittutorial | \
documented,gittutorial-2 | \
documented,git-bisect-lk2009 | \
Expand Down
2 changes: 1 addition & 1 deletion RelNotes
2 changes: 1 addition & 1 deletion builtin/commit.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ static struct option builtin_commit_options[] = {
"terminate entries with NUL"),
OPT_BOOLEAN(0, "amend", &amend, "amend previous commit"),
OPT_BOOLEAN(0, "no-post-rewrite", &no_post_rewrite, "bypass post-rewrite hook"),
{ OPTION_STRING, 'u', "untracked-files", &untracked_files_arg, "mode", "show untracked files, optional modes: all, normal, no. (Default: all)", PARSE_OPT_OPTARG, NULL, (intptr_t)"all" },
{ OPTION_STRING, 'u', "untracked-files", &untracked_files_arg, "mode", "show untracked files, optional modes: all, normal, no (Default: all)", PARSE_OPT_OPTARG, NULL, (intptr_t)"all" },
/* end commit contents options */

{ OPTION_BOOLEAN, 0, "allow-empty", &allow_empty, NULL,
Expand Down
3 changes: 2 additions & 1 deletion builtin/fetch.c
Original file line number Diff line number Diff line change
Expand Up @@ -845,7 +845,8 @@ static int fetch_one(struct remote *remote, int argc, const char **argv)
int exit_code;

if (!remote)
die("Where do you want to fetch from today?");
die("No remote repository specified. Please, specify either a URL or a\n"
"remote name from which new revisions should be fetched.");

transport = transport_get(remote, NULL);
transport_set_verbosity(transport, verbosity, progress);
Expand Down
4 changes: 2 additions & 2 deletions git.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ const char git_usage_string[] =
"git [--version] [--exec-path[=GIT_EXEC_PATH]] [--html-path]\n"
" [-p|--paginate|--no-pager] [--no-replace-objects]\n"
" [--bare] [--git-dir=GIT_DIR] [--work-tree=GIT_WORK_TREE]\n"
" [-c name=value\n"
" [--help] COMMAND [ARGS]";
" [-c name=value] [--help]\n"
" COMMAND [ARGS]";

const char git_more_info_string[] =
"See 'git help COMMAND' for more information on a specific command.";
Expand Down
2 changes: 2 additions & 0 deletions path.c
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,8 @@ char *expand_user_path(const char *path)
size_t username_len = first_slash - username;
if (username_len == 0) {
const char *home = getenv("HOME");
if (!home)
goto return_null;
strbuf_add(&user_path, home, strlen(home));
} else {
struct passwd *pw = getpw_str(username, username_len);
Expand Down
24 changes: 23 additions & 1 deletion t/t1300-repo-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -707,19 +707,41 @@ test_expect_success 'set --path' '
git config --path path.trailingtilde "foo~" &&
test_cmp expect .git/config'

if test "${HOME+set}"
then
test_set_prereq HOMEVAR
fi

cat >expect <<EOF
$HOME/
/dev/null
foo~
EOF

test_expect_success 'get --path' '
test_expect_success HOMEVAR 'get --path' '
git config --get --path path.home > result &&
git config --get --path path.normal >> result &&
git config --get --path path.trailingtilde >> result &&
test_cmp expect result
'

cat >expect <<\EOF
/dev/null
foo~
EOF

test_expect_success 'get --path copes with unset $HOME' '
(
unset HOME;
test_must_fail git config --get --path path.home \
>result 2>msg &&
git config --get --path path.normal >>result &&
git config --get --path path.trailingtilde >>result
) &&
grep "[Ff]ailed to expand.*~/" msg &&
test_cmp expect result
'

rm .git/config

git config quote.leading " test"
Expand Down

0 comments on commit ba9523e

Please sign in to comment.