Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
git
提交
ee9fb68c
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,发现更多精彩内容 >>
提交
ee9fb68c
编写于
3月 13, 2009
作者:
J
Johannes Sixt
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Skip tests that require a filesystem that obeys POSIX permissions
Signed-off-by:
N
Johannes Sixt
<
j6t@kdbg.org
>
上级
2718e852
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
23 addition
and
19 deletion
+23
-19
t/t0004-unwritable.sh
t/t0004-unwritable.sh
+4
-4
t/t1301-shared-repo.sh
t/t1301-shared-repo.sh
+5
-5
t/t3700-add.sh
t/t3700-add.sh
+4
-4
t/t7503-pre-commit-hook.sh
t/t7503-pre-commit-hook.sh
+2
-2
t/t7504-commit-msg-hook.sh
t/t7504-commit-msg-hook.sh
+4
-4
t/test-lib.sh
t/test-lib.sh
+4
-0
未找到文件。
t/t0004-unwritable.sh
浏览文件 @
ee9fb68c
...
...
@@ -15,7 +15,7 @@ test_expect_success setup '
'
test_expect_success
'write-tree should notice unwritable repository'
'
test_expect_success
POSIXPERM
'write-tree should notice unwritable repository'
'
(
chmod a-w .git/objects .git/objects/?? &&
...
...
@@ -27,7 +27,7 @@ test_expect_success 'write-tree should notice unwritable repository' '
'
test_expect_success
'commit should notice unwritable repository'
'
test_expect_success
POSIXPERM
'commit should notice unwritable repository'
'
(
chmod a-w .git/objects .git/objects/?? &&
...
...
@@ -39,7 +39,7 @@ test_expect_success 'commit should notice unwritable repository' '
'
test_expect_success
'update-index should notice unwritable repository'
'
test_expect_success
POSIXPERM
'update-index should notice unwritable repository'
'
(
echo 6O >file &&
...
...
@@ -52,7 +52,7 @@ test_expect_success 'update-index should notice unwritable repository' '
'
test_expect_success
'add should notice unwritable repository'
'
test_expect_success
POSIXPERM
'add should notice unwritable repository'
'
(
echo b >file &&
...
...
t/t1301-shared-repo.sh
浏览文件 @
ee9fb68c
...
...
@@ -26,7 +26,7 @@ modebits () {
for
u
in
002 022
do
test_expect_success
"shared=1 does not clear bits preset by umask
$u
"
'
test_expect_success
POSIXPERM
"shared=1 does not clear bits preset by umask
$u
"
'
mkdir sub && (
cd sub &&
umask $u &&
...
...
@@ -54,7 +54,7 @@ test_expect_success 'shared=all' '
test 2 = $(git config core.sharedrepository)
'
test_expect_success
'update-server-info honors core.sharedRepository'
'
test_expect_success
POSIXPERM
'update-server-info honors core.sharedRepository'
'
: > a1 &&
git add a1 &&
test_tick &&
...
...
@@ -85,7 +85,7 @@ do
git config core.sharedrepository
"
$u
"
&&
umask
0277
&&
test_expect_success
"shared =
$u
(
$y
) ro"
'
test_expect_success
POSIXPERM
"shared =
$u
(
$y
) ro"
'
rm -f .git/info/refs &&
git update-server-info &&
...
...
@@ -97,7 +97,7 @@ do
'
umask
077
&&
test_expect_success
"shared =
$u
(
$x
) rw"
'
test_expect_success
POSIXPERM
"shared =
$u
(
$x
) rw"
'
rm -f .git/info/refs &&
git update-server-info &&
...
...
@@ -111,7 +111,7 @@ do
done
test_expect_success
'git reflog expire honors core.sharedRepository'
'
test_expect_success
POSIXPERM
'git reflog expire honors core.sharedRepository'
'
git config core.sharedRepository group &&
git reflog expire --all &&
actual="$(ls -l .git/logs/refs/heads/master)" &&
...
...
t/t3700-add.sh
浏览文件 @
ee9fb68c
...
...
@@ -179,7 +179,7 @@ test_expect_success 'git add --refresh' '
test -z "`git diff-index HEAD -- foo`"
'
test_expect_success
'git add should fail atomically upon an unreadable file'
'
test_expect_success
POSIXPERM
'git add should fail atomically upon an unreadable file'
'
git reset --hard &&
date >foo1 &&
date >foo2 &&
...
...
@@ -190,7 +190,7 @@ test_expect_success 'git add should fail atomically upon an unreadable file' '
rm
-f
foo2
test_expect_success
'git add --ignore-errors'
'
test_expect_success
POSIXPERM
'git add --ignore-errors'
'
git reset --hard &&
date >foo1 &&
date >foo2 &&
...
...
@@ -201,7 +201,7 @@ test_expect_success 'git add --ignore-errors' '
rm
-f
foo2
test_expect_success
'git add (add.ignore-errors)'
'
test_expect_success
POSIXPERM
'git add (add.ignore-errors)'
'
git config add.ignore-errors 1 &&
git reset --hard &&
date >foo1 &&
...
...
@@ -212,7 +212,7 @@ test_expect_success 'git add (add.ignore-errors)' '
'
rm
-f
foo2
test_expect_success
'git add (add.ignore-errors = false)'
'
test_expect_success
POSIXPERM
'git add (add.ignore-errors = false)'
'
git config add.ignore-errors 0 &&
git reset --hard &&
date >foo1 &&
...
...
t/t7503-pre-commit-hook.sh
浏览文件 @
ee9fb68c
...
...
@@ -69,7 +69,7 @@ test_expect_success '--no-verify with failing hook' '
'
chmod
-x
"
$HOOK
"
test_expect_success
'with non-executable hook'
'
test_expect_success
POSIXPERM
'with non-executable hook'
'
echo "content" >> file &&
git add file &&
...
...
@@ -77,7 +77,7 @@ test_expect_success 'with non-executable hook' '
'
test_expect_success
'--no-verify with non-executable hook'
'
test_expect_success
POSIXPERM
'--no-verify with non-executable hook'
'
echo "more content" >> file &&
git add file &&
...
...
t/t7504-commit-msg-hook.sh
浏览文件 @
ee9fb68c
...
...
@@ -136,7 +136,7 @@ test_expect_success '--no-verify with failing hook (editor)' '
'
chmod
-x
"
$HOOK
"
test_expect_success
'with non-executable hook'
'
test_expect_success
POSIXPERM
'with non-executable hook'
'
echo "content" >> file &&
git add file &&
...
...
@@ -144,7 +144,7 @@ test_expect_success 'with non-executable hook' '
'
test_expect_success
'with non-executable hook (editor)'
'
test_expect_success
POSIXPERM
'with non-executable hook (editor)'
'
echo "content again" >> file &&
git add file &&
...
...
@@ -153,7 +153,7 @@ test_expect_success 'with non-executable hook (editor)' '
'
test_expect_success
'--no-verify with non-executable hook'
'
test_expect_success
POSIXPERM
'--no-verify with non-executable hook'
'
echo "more content" >> file &&
git add file &&
...
...
@@ -161,7 +161,7 @@ test_expect_success '--no-verify with non-executable hook' '
'
test_expect_success
'--no-verify with non-executable hook (editor)'
'
test_expect_success
POSIXPERM
'--no-verify with non-executable hook (editor)'
'
echo "even more content" >> file &&
git add file &&
...
...
t/test-lib.sh
浏览文件 @
ee9fb68c
...
...
@@ -687,6 +687,10 @@ case $(uname -s) in
pwd
()
{
builtin pwd
-W
}
# no POSIX permissions
;;
*
)
test_set_prereq POSIXPERM
;;
esac
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录