Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
git
提交
33a0292e
G
git
项目概览
李少辉-开发者
/
git
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
git
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
33a0292e
编写于
7月 27, 2010
作者:
J
Junio C Hamano
浏览文件
操作
浏览文件
下载
差异文件
Sync with 1.7.1.2
上级
49bb1f2a
245b10ca
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
54 addition
and
3 deletion
+54
-3
Documentation/RelNotes-1.7.0.7.txt
Documentation/RelNotes-1.7.0.7.txt
+16
-0
Documentation/RelNotes-1.7.1.2.txt
Documentation/RelNotes-1.7.1.2.txt
+9
-0
Documentation/git.txt
Documentation/git.txt
+4
-2
path.c
path.c
+2
-0
t/t1300-repo-config.sh
t/t1300-repo-config.sh
+23
-1
未找到文件。
Documentation/RelNotes-1.7.0.7.txt
0 → 100644
浏览文件 @
33a0292e
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.
Documentation/RelNotes-1.7.1.2.txt
浏览文件 @
33a0292e
...
...
@@ -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.
Documentation/git.txt
浏览文件 @
33a0292e
...
...
@@ -49,15 +49,17 @@ Documentation for older releases are available here:
* release notes for
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],
...
...
path.c
浏览文件 @
33a0292e
...
...
@@ -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
);
...
...
t/t1300-repo-config.sh
浏览文件 @
33a0292e
...
...
@@ -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"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录