Package: src:git; Maintainer for src:git is Jonathan Nieder <jrnieder@gmail.com>;
Reported by: Marc Mutz <marc@kdab.net>
Date: Thu, 16 Apr 2009 07:24:04 UTC
Severity: normal
Tags: fixed-upstream, upstream
Merged with 579273
Found in versions git/1:1.6.2.3-1, git/1:1.7.0.4-1
Fixed in version git/1:1.7.4.1-1
Done: Jonathan Nieder <jrnieder@gmail.com>
Bug is archived. No further changes may be made.
Forwarded to http://thread.gmane.org/gmane.comp.version-control.git/145427
View this report as an mbox folder, status mbox, maintainer mbox
Report forwarded
to debian-bugs-dist@lists.debian.org, Gerrit Pape <pape@smarden.org>:
Bug#524309; Package git-core.
(Thu, 16 Apr 2009 07:24:06 GMT) (full text, mbox, link).
Acknowledgement sent
to Marc Mutz <marc@kdab.net>:
New Bug report received and forwarded. Copy sent to Gerrit Pape <pape@smarden.org>.
(Thu, 16 Apr 2009 07:24:06 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Source: git-core
Version: 1.6.2.3-1
[This is similar to, but sufficiently different from,
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=493867
to warrant a new report]
I'm trying to build git-core from Sid source on Etch/amd64, with these dependencies
already successfully compiled from Sid source:
- asciidoc_8.2.7-3
- docbook-xsl_1.73.2.dfsg.1-5
- tcl8.5_8.5.6-3
steps to reproduce:
$ mkdir /tmp/foo # tmp is tmpfs, but the same error occurs on ext3
$ cd /tmp/foo
$ apt-get source -t sid --compile git-core
<snip> (failures are at beginning, and again at end)
*** t0004-unwritable.sh ***
* ok 1: setup
* FAIL 2: write-tree should notice unwritable repository
(
chmod a-w .git/objects .git/objects/?? &&
test_must_fail git write-tree
)
status=$?
chmod 775 .git/objects .git/objects/??
(exit $status)
* FAIL 3: commit should notice unwritable repository
(
chmod a-w .git/objects .git/objects/?? &&
test_must_fail git commit -m second
)
status=$?
chmod 775 .git/objects .git/objects/??
(exit $status)
* FAIL 4: update-index should notice unwritable repository
(
echo 6O >file &&
chmod a-w .git/objects .git/objects/?? &&
test_must_fail git update-index file
)
status=$?
chmod 775 .git/objects .git/objects/??
(exit $status)
* FAIL 5: add should notice unwritable repository
(
echo b >file &&
chmod a-w .git/objects .git/objects/?? &&
test_must_fail git add file
)
status=$?
chmod 775 .git/objects .git/objects/??
(exit $status)
* failed 4 among 5 test(s)
make[3]: *** [t0004-unwritable.sh] Error 1
make[3]: Leaving directory `/root/foo/git-core-1.6.2.3/t'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/root/foo/git-core-1.6.2.3/t'
make[1]: *** [test] Error 2
make[1]: Leaving directory `/root/foo/git-core-1.6.2.3'
make[1]: Entering directory `/root/foo/git-core-1.6.2.3'
make[2]: Entering directory `/root/foo/git-core-1.6.2.3/git-gui'
make[2]: Leaving directory `/root/foo/git-core-1.6.2.3/git-gui'
make[2]: Entering directory `/root/foo/git-core-1.6.2.3/gitk-git'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/root/foo/git-core-1.6.2.3/gitk-git'
make[2]: Entering directory `/root/foo/git-core-1.6.2.3/perl'
make[3]: Entering directory `/root/foo/git-core-1.6.2.3/perl'
make[3]: Leaving directory `/root/foo/git-core-1.6.2.3/perl'
make[2]: Leaving directory `/root/foo/git-core-1.6.2.3/perl'
make[2]: Entering directory `/root/foo/git-core-1.6.2.3/templates'
make[2]: Leaving directory `/root/foo/git-core-1.6.2.3/templates'
/usr/bin/make -C t/ all
make[2]: Entering directory `/root/foo/git-core-1.6.2.3/t'
rm -f -r test-results
/usr/bin/make aggregate-results-and-cleanup
make[3]: Entering directory `/root/foo/git-core-1.6.2.3/t'
*** t0000-basic.sh ***
Initialized empty Git repository in /root/foo/git-core-1.6.2.3/t/trash
directory.t0000-basic/.git/
* expecting success: cmp -s /dev/null should-be-empty
* ok 1: .git/objects should be empty after git init in an empty repo.
* expecting success: test $(wc -l < full-of-directories) = 3
* ok 2: .git/objects should have 3 subdirectories.
* expecting success:
:
* ok 3: success is reported like this
* checking known breakage:
false
* still broken 4: pretend we have a known breakage
* checking known breakage:
:
* FIXED 5: pretend we have fixed a known breakage
* expecting success:
test_must_fail git update-index should-be-empty
error: should-be-empty: cannot add to the index - missing --add option?
fatal: Unable to process path should-be-empty
* ok 6: git update-index without --add should fail adding.
* expecting success: git update-index --add should-be-empty
* ok 7: git update-index with --add should succeed.
* expecting success: tree=$(git write-tree)
* ok 8: writing tree out with git write-tree
* expecting success: test "$tree" = 7bb943559a305bdd6bdee2cef6e5df2413c3d30a
* ok 9: validate object ID of a known tree.
* expecting success:
test_must_fail git update-index should-be-empty
error: should-be-empty: does not exist and --remove not passed
fatal: Unable to process path should-be-empty
* ok 10: git update-index without --remove should fail removing.
* expecting success: git update-index --remove should-be-empty
* ok 11: git update-index with --remove should be able to remove.
* expecting success: tree=$(git write-tree)
* ok 12: git write-tree should be able to write an empty tree.
* expecting success: test "$tree" = 4b825dc642cb6eb9a060e54bf8d69288fbee4904
* ok 13: validate object ID of a known tree.
* expecting success: find path* ! -type d -print | xargs git update-index --add
* ok 14: adding various types of objects with git update-index --add.
* expecting success: git ls-files --stage >current
* ok 15: showing stage with git ls-files --stage
* expecting success: diff current expected
* ok 16: validate git ls-files output for a known tree.
* expecting success: tree=$(git write-tree)
* ok 17: writing tree out with git write-tree.
* expecting success: test "$tree" = 087704a96baf1c2d1c869a8b084481e121c88b5b
* ok 18: validate object ID for a known tree.
* expecting success: git ls-tree $tree >current
* ok 19: showing tree with git ls-tree
* expecting success: diff current expected
* ok 20: git ls-tree output for a known tree.
* expecting success: git ls-tree -r $tree >current
* ok 21: showing tree with git ls-tree -r
* expecting success: diff current expected
* ok 22: git ls-tree -r output for a known tree.
* expecting success: git ls-tree -r -t $tree >current
* ok 23: showing tree with git ls-tree -r -t
* expecting success: diff current expected
* ok 24: git ls-tree -r output for a known tree.
* expecting success: ptree=$(git write-tree --prefix=path3)
* ok 25: writing partial tree out with git write-tree --prefix.
* expecting success: test "$ptree" = 21ae8269cacbe57ae09138dcc3a2887f904d02b3
* ok 26: validate object ID for a known tree.
* expecting success: ptree=$(git write-tree --prefix=path3/subp3)
* ok 27: writing partial tree out with git write-tree --prefix.
* expecting success: test "$ptree" = 3c5e5399f3a333eddecce7a9b9465b63f65f51e2
* ok 28: validate object ID for a known tree.
* expecting success: git update-index --index-info < badobjects
* ok 29: put invalid objects into the index.
* expecting success:
test_must_fail git write-tree
error: invalid object 1000000000000000000000000000000000000000
fatal: git-write-tree: error building trees
* ok 30: writing this tree without --missing-ok.
* expecting success: git write-tree --missing-ok
851a367613bb6e1f0b2b518323eafed530b5b4c4
* ok 31: writing this tree with --missing-ok.
* expecting success: git read-tree $tree &&
test -f .git/index &&
newtree=$(git write-tree) &&
test "$newtree" = "$tree"
* ok 32: git read-tree followed by write-tree should be idempotent.
* expecting success: git diff-files >current && diff >/dev/null -b current expected
* ok 33: validate git diff-files output for a know cache/work tree state.
* expecting success: git update-index --refresh
* ok 34: git update-index --refresh should succeed.
* expecting success: git diff-files >current && cmp -s current /dev/null
* ok 35: no diff after checkout and git update-index --refresh.
* expecting success: commit0=$(echo NO | git commit-tree $P) &&
tree=$(git show --pretty=raw $commit0 |
sed -n -e "s/^tree //p" -e "/^author /q") &&
test "z$tree" = "z$P"
* ok 36: git commit-tree records the correct tree in a commit.
* expecting success: commit1=$(echo NO | git commit-tree $P -p $commit0) &&
parent=$(git show --pretty=raw $commit1 |
sed -n -e "s/^parent //p" -e "/^author /q") &&
test "z$commit0" = "z$parent"
* ok 37: git commit-tree records the correct parent in a commit.
* expecting success: commit2=$(echo NO | git commit-tree $P -p $commit0 -p
$commit0) &&
parent=$(git show --pretty=raw $commit2 |
sed -n -e "s/^parent //p" -e "/^author /q" |
sort -u) &&
test "z$commit0" = "z$parent" &&
numparent=$(git show --pretty=raw $commit2 |
sed -n -e "s/^parent //p" -e "/^author /q" |
wc -l) &&
test $numparent = 1
error: duplicate parent 699fdaeb2458cc88f774bad9577b42b595ce0a7d ignored
* ok 38: git commit-tree omits duplicated parent in a commit.
* expecting success:
mv path0 tmp &&
mv path2 path0 &&
mv tmp path2 &&
git update-index --add --replace path2 path0/file2 &&
numpath0=$(git ls-files path0 | wc -l) &&
test $numpath0 = 1
* ok 39: update-index D/F conflict
* expecting success:
mkdir first &&
ln -s ../.git first/.git &&
mkdir second &&
ln -s ../first second/other &&
mkdir third &&
dir="$(cd .git; pwd -P)" &&
dir2=third/../second/other/.git &&
test "$dir" = "$(test-path-utils make_absolute_path $dir2)" &&
file="$dir"/index &&
test "$file" = "$(test-path-utils make_absolute_path $dir2/index)" &&
basename=blub &&
test "$dir/$basename" = "$(cd .git && test-path-utils
make_absolute_path "$basename")" &&
ln -s ../first/file .git/syml &&
sym="$(cd first; pwd -P)"/file &&
test "$sym" = "$(test-path-utils make_absolute_path "$dir2/syml")"
* ok 40: absolute path works as expected
* expecting success:
a=a && # 1
a=$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a && # 16
a=$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a && # 256
a=$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a && # 4096
a=${a}q &&
>path4 &&
git update-index --add path4 &&
(
git ls-files -s path4 |
sed -e "s/ .*/ /" |
tr -d "\012"
echo "$a"
) | git update-index --index-info &&
len=$(git ls-files "a*" | wc -c) &&
test $len = 4098
* ok 41: very long name in the index handled sanely
* fixed 1 known breakage(s)
* still have 1 known breakage(s)
* passed all remaining 40 test(s)
*** t0001-init.sh ***
Initialized empty Git repository in /root/foo/git-core-1.6.2.3/t/trash directory.t0001-init/.git/
* expecting success:
(
unset GIT_DIR GIT_WORK_TREE
mkdir plain &&
cd plain &&
git init
) &&
check_config plain/.git false unset
Initialized empty Git repository in /root/foo/git-core-1.6.2.3/t/trash
directory.t0001-init/plain/.git/
* ok 1: plain
* expecting success:
if (
unset GIT_DIR
mkdir plain-wt &&
cd plain-wt &&
GIT_WORK_TREE=$(pwd) git init
)
then
echo Should have failed -- GIT_WORK_TREE should not be used
false
fi
fatal: GIT_WORK_TREE (or --work-tree=<directory>) not allowed without specifying
GIT_DIR (or --git-dir=<directory>)
* ok 2: plain with GIT_WORK_TREE
* expecting success:
(
unset GIT_DIR GIT_WORK_TREE GIT_CONFIG
mkdir plain-bare-1 &&
cd plain-bare-1 &&
git --bare init
) &&
check_config plain-bare-1 true unset
Initialized empty Git repository in /root/foo/git-core-1.6.2.3/t/trash
directory.t0001-init/plain-bare-1/
* ok 3: plain bare
* expecting success:
if (
unset GIT_DIR GIT_CONFIG
mkdir plain-bare-2 &&
cd plain-bare-2 &&
GIT_WORK_TREE=$(pwd) git --bare init
)
then
echo Should have failed -- GIT_WORK_TREE should not be used
false
fi
fatal: GIT_WORK_TREE (or --work-tree=<directory>) not allowed without specifying
GIT_DIR (or --git-dir=<directory>)
* ok 4: plain bare with GIT_WORK_TREE
* expecting success:
(
unset GIT_CONFIG
mkdir git-dir-bare.git &&
GIT_DIR=git-dir-bare.git git init
) &&
check_config git-dir-bare.git true unset
Initialized empty Git repository in /root/foo/git-core-1.6.2.3/t/trash
directory.t0001-init/git-dir-bare.git/
* ok 5: GIT_DIR bare
* expecting success:
(
unset GIT_DIR GIT_WORK_TREE GIT_CONFIG
mkdir init-bare.git &&
cd init-bare.git &&
git init --bare
) &&
check_config init-bare.git true unset
Initialized empty Git repository in /root/foo/git-core-1.6.2.3/t/trash
directory.t0001-init/init-bare.git/
* ok 6: init --bare
* expecting success:
(
unset GIT_CONFIG
mkdir non-bare &&
cd non-bare &&
GIT_DIR=.git git init
) &&
check_config non-bare/.git false unset
Initialized empty Git repository in /root/foo/git-core-1.6.2.3/t/trash
directory.t0001-init/non-bare/.git/
* ok 7: GIT_DIR non-bare
* expecting success:
(
unset GIT_CONFIG
mkdir git-dir-wt-1.git &&
GIT_WORK_TREE=$(pwd) GIT_DIR=git-dir-wt-1.git git init
) &&
check_config git-dir-wt-1.git false "$(pwd)"
Initialized empty Git repository in /root/foo/git-core-1.6.2.3/t/trash
directory.t0001-init/git-dir-wt-1.git/
* ok 8: GIT_DIR & GIT_WORK_TREE (1)
* expecting success:
if (
unset GIT_CONFIG
mkdir git-dir-wt-2.git &&
GIT_WORK_TREE=$(pwd) GIT_DIR=git-dir-wt-2.git git --bare init
)
then
echo Should have failed -- --bare should not be used
false
fi
fatal: GIT_WORK_TREE (or --work-tree=<directory>) not allowed without specifying
GIT_DIR (or --git-dir=<directory>)
* ok 9: GIT_DIR & GIT_WORK_TREE (2)
* expecting success:
(
unset GIT_CONFIG GIT_WORK_TREE GIT_CONFIG
mkdir again &&
cd again &&
git init >out1 2>err1 &&
git init >out2 2>err2
) &&
grep "Initialized empty" again/out1 &&
grep "Reinitialized existing" again/out2 &&
>again/empty &&
test_cmp again/empty again/err1 &&
test_cmp again/empty again/err2
Initialized empty Git repository in /root/foo/git-core-1.6.2.3/t/trash
directory.t0001-init/again/.git/
Reinitialized existing Git repository in /root/foo/git-core-1.6.2.3/t/trash
directory.t0001-init/again/.git/
* ok 10: reinit
* expecting success:
mkdir template-source &&
echo content >template-source/file &&
(
mkdir template-custom &&
cd template-custom &&
git init --template=../template-source
) &&
test_cmp template-source/file template-custom/.git/file
Initialized empty Git repository in /root/foo/git-core-1.6.2.3/t/trash
directory.t0001-init/template-custom/.git/
* ok 11: init with --template
* expecting success:
(
mkdir template-plain &&
cd template-plain &&
git init
) &&
test -f template-plain/.git/info/exclude &&
(
mkdir template-blank &&
cd template-blank &&
git init --template=
) &&
! test -f template-blank/.git/info/exclude
Initialized empty Git repository in /root/foo/git-core-1.6.2.3/t/trash
directory.t0001-init/template-plain/.git/
Initialized empty Git repository in /root/foo/git-core-1.6.2.3/t/trash
directory.t0001-init/template-blank/.git/
* ok 12: init with --template (blank)
* expecting success:
(
HOME="`pwd`" &&
export HOME &&
test_config="$HOME"/.gitconfig &&
unset GIT_CONFIG_NOGLOBAL &&
git config -f "$test_config" core.bare false &&
git config -f "$test_config" core.sharedRepository 0640 &&
mkdir init-bare-shared-override &&
cd init-bare-shared-override &&
git init --bare --shared=0666
) &&
check_config init-bare-shared-override true unset &&
test x0666 = \
x`git config -f init-bare-shared-override/config core.sharedRepository`
Initialized empty shared Git repository in /root/foo/git-core-1.6.2.3/t/trash
directory.t0001-init/init-bare-shared-override/
* ok 13: init --bare/--shared overrides system/global config
* expecting success:
(
HOME="`pwd`" &&
export HOME &&
test_config="$HOME"/.gitconfig &&
unset GIT_CONFIG_NOGLOBAL &&
git config -f "$test_config" core.sharedRepository 0666 &&
mkdir shared-honor-global &&
cd shared-honor-global &&
git init
) &&
test x0666 = \
x`git config -f shared-honor-global/.git/config core.sharedRepository`
Initialized empty shared Git repository in /root/foo/git-core-1.6.2.3/t/trash
directory.t0001-init/shared-honor-global/.git/
* ok 14: init honors global core.sharedRepository
* passed all 14 test(s)
*** t0002-gitfile.sh ***
Initialized empty Git repository in /root/foo/git-core-1.6.2.3/t/trash
directory.t0002-gitfile/.git/
* expecting success:
REAL="$(pwd)/.real" &&
mv .git "$REAL"
* ok 1: initial setup
* expecting success:
echo "gitdir $REAL" >.git &&
if git rev-parse 2>.err
then
echo "git rev-parse accepted an invalid .git file"
false
fi &&
if ! grep "Invalid gitfile format" .err
then
echo "git rev-parse returned wrong error"
false
fi
fatal: Invalid gitfile format: .git
* ok 2: bad setup: invalid .git file format
* expecting success:
echo "gitdir: $REAL.not" >.git &&
if git rev-parse 2>.err
then
echo "git rev-parse accepted an invalid .git file path"
false
fi &&
if ! grep "Not a git repository" .err
then
echo "git rev-parse returned wrong error"
false
fi
fatal: Not a git repository: /root/foo/git-core-1.6.2.3/t/trash directory.t0002-gitfile/.real.not
* ok 3: bad setup: invalid .git file path
* expecting success:
echo "gitdir: $REAL" >.git &&
test "$REAL" = "$(git rev-parse --git-dir)"
* ok 4: final setup + check rev-parse --git-dir
* expecting success:
echo "foo" >bar &&
SHA=$(cat bar | git hash-object -w --stdin) &&
objck $SHA
* ok 5: check hash-object
* expecting success:
git cat-file blob $SHA >actual &&
test_cmp bar actual
* ok 6: check cat-file
* expecting success:
if test -f "$REAL/index"
then
echo "Hmm, $REAL/index exists?"
false
fi &&
rm -f "$REAL/objects/$(objpath $SHA)" &&
git update-index --add bar &&
if ! test -f "$REAL/index"
then
echo "$REAL/index not found"
false
fi &&
objck $SHA
* ok 7: check update-index
* expecting success:
SHA=$(git write-tree) &&
objck $SHA
* ok 8: check write-tree
* expecting success:
SHA=$(echo "commit bar" | git commit-tree $SHA) &&
objck $SHA
* ok 9: check commit-tree
* expecting success:
echo $SHA >"$REAL/HEAD" &&
test "$SHA" = "$(git rev-list HEAD)"
* ok 10: check rev-list
* passed all 10 test(s)
*** t0003-attributes.sh ***
Initialized empty Git repository in /root/foo/git-core-1.6.2.3/t/trash
directory.t0003-attributes/.git/
* expecting success:
mkdir -p a/b/d a/c &&
(
echo "f test=f"
echo "a/i test=a/i"
) >.gitattributes &&
(
echo "g test=a/g" &&
echo "b/g test=a/b/g"
) >a/.gitattributes &&
(
echo "h test=a/b/h" &&
echo "d/* test=a/b/d/*"
) >a/b/.gitattributes
* ok 1: setup
* expecting success:
attr_check f f &&
attr_check a/f f &&
attr_check a/c/f f &&
attr_check a/g a/g &&
attr_check a/b/g a/b/g &&
attr_check b/g unspecified &&
attr_check a/b/h a/b/h &&
attr_check a/b/d/g "a/b/d/*"
* ok 2: attribute test
* expecting success:
cat <<EOF > expect
f: test: f
a/f: test: f
a/c/f: test: f
a/g: test: a/g
a/b/g: test: a/b/g
b/g: test: unspecified
a/b/h: test: a/b/h
a/b/d/g: test: a/b/d/*
EOF
sed -e "s/:.*//" < expect | git check-attr --stdin test > actual &&
test_cmp expect actual
* ok 3: attribute test: read paths from stdin
* expecting success:
attr_check a/i a/i &&
attr_check subdir/a/i unspecified
* ok 4: root subdir attribute test
* expecting success:
git clone --bare . bare.git &&
cd bare.git
Initialized empty Git repository in /root/foo/git-core-1.6.2.3/t/trash
directory.t0003-attributes/bare.git/
warning: You appear to have cloned an empty repository.
* ok 5: setup bare
* expecting success:
(
echo "f test=f"
echo "a/i test=a/i"
) >.gitattributes &&
attr_check f unspecified &&
attr_check a/f unspecified &&
attr_check a/c/f unspecified &&
attr_check a/i unspecified &&
attr_check subdir/a/i unspecified
* ok 6: bare repository: check that .gitattribute is ignored
* expecting success:
(
echo "f test=f"
echo "a/i test=a/i"
) >info/attributes &&
attr_check f f &&
attr_check a/f f &&
attr_check a/c/f f &&
attr_check a/i a/i &&
attr_check subdir/a/i unspecified
* ok 7: bare repository: test info/attributes
* passed all 7 test(s)
*** t0004-unwritable.sh ***
Initialized empty Git repository in /root/foo/git-core-1.6.2.3/t/trash
directory.t0004-unwritable/.git/
* expecting success:
>file &&
git add file &&
test_tick &&
git commit -m initial &&
echo >file &&
git add file
[master (root-commit) 1bd44cb] initial
0 files changed, 0 insertions(+), 0 deletions(-)
create mode 100644 file
* ok 1: setup
* expecting success:
(
chmod a-w .git/objects .git/objects/?? &&
test_must_fail git write-tree
)
status=$?
chmod 775 .git/objects .git/objects/??
(exit $status)
47d83249b05cf06491633be38ea8637c5b356acc
* FAIL 2: write-tree should notice unwritable repository
(
chmod a-w .git/objects .git/objects/?? &&
test_must_fail git write-tree
)
status=$?
chmod 775 .git/objects .git/objects/??
(exit $status)
* expecting success:
(
chmod a-w .git/objects .git/objects/?? &&
test_must_fail git commit -m second
)
status=$?
chmod 775 .git/objects .git/objects/??
(exit $status)
[master 601cf8b] second
1 files changed, 1 insertions(+), 0 deletions(-)
* FAIL 3: commit should notice unwritable repository
(
chmod a-w .git/objects .git/objects/?? &&
test_must_fail git commit -m second
)
status=$?
chmod 775 .git/objects .git/objects/??
(exit $status)
* expecting success:
(
echo 6O >file &&
chmod a-w .git/objects .git/objects/?? &&
test_must_fail git update-index file
)
status=$?
chmod 775 .git/objects .git/objects/??
(exit $status)
* FAIL 4: update-index should notice unwritable repository
(
echo 6O >file &&
chmod a-w .git/objects .git/objects/?? &&
test_must_fail git update-index file
)
status=$?
chmod 775 .git/objects .git/objects/??
(exit $status)
* expecting success:
(
echo b >file &&
chmod a-w .git/objects .git/objects/?? &&
test_must_fail git add file
)
status=$?
chmod 775 .git/objects .git/objects/??
(exit $status)
* FAIL 5: add should notice unwritable repository
(
echo b >file &&
chmod a-w .git/objects .git/objects/?? &&
test_must_fail git add file
)
status=$?
chmod 775 .git/objects .git/objects/??
(exit $status)
* failed 4 among 5 test(s)
make[3]: *** [t0004-unwritable.sh] Error 1
make[3]: Leaving directory `/root/foo/git-core-1.6.2.3/t'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/root/foo/git-core-1.6.2.3/t'
make[1]: *** [test] Error 2
make[1]: Leaving directory `/root/foo/git-core-1.6.2.3'
make: *** [build-arch-stamp] Error 2
Build command 'cd git-core-1.6.2.3 && dpkg-buildpackage -b -uc' failed.
E: Child process failed
--
Marc Mutz <marc@kdab.com> | Senior Software Engineer
KDAB (Deutschland) GmbH & Co.KG, a KDAB Group Company
www.kdab.com || Germany +49-30-521325470 || Sweden (HQ) +46-563-540090
KDAB - Qt Experts - Platform-Independent Software Solutions
Information forwarded
to debian-bugs-dist@lists.debian.org, Gerrit Pape <pape@smarden.org>:
Bug#524309; Package git-core.
(Thu, 16 Apr 2009 18:57:02 GMT) (full text, mbox, link).
Acknowledgement sent
to Jonathan Nieder <jrnieder@gmail.com>:
Extra info received and forwarded to list. Copy sent to Gerrit Pape <pape@smarden.org>.
(Thu, 16 Apr 2009 18:57:02 GMT) (full text, mbox, link).
Message #10 received at 524309@bugs.debian.org (full text, mbox, reply):
retitle 524309 git-core: Test suite fails when run as root severity 524309 minor thank you Hi Marc, Marc Mutz wrote: > * failed 4 among 5 test(s) > make[3]: *** [t0004-unwritable.sh] Error 1 > make[3]: Leaving directory `/root/foo/git-core-1.6.2.3/t' > make[2]: *** [all] Error 2 > make[2]: Leaving directory `/root/foo/git-core-1.6.2.3/t' > make[1]: *** [test] Error 2 > make[1]: Leaving directory `/root/foo/git-core-1.6.2.3' > make: *** [build-arch-stamp] Error 2 > Build command 'cd git-core-1.6.2.3 && dpkg-buildpackage -b -uc' failed. > E: Child process failed git's test suite fails when run as root, since it checks that git properly errors out on encountering a repository it cannot access. The relevant tests should probably be skipped when run as root, but it is easy to work around the problem by building as an unprivileged user. Hope that helps, Jonathan
Changed Bug title to `git-core: Test suite fails when run as root' from `4/5 tests failed in t0004-unwritable.sh'.
Request was from Jonathan Nieder <jrnieder@gmail.com>
to control@bugs.debian.org.
(Thu, 16 Apr 2009 18:57:05 GMT) (full text, mbox, link).
Severity set to `minor' from `normal'
Request was from Jonathan Nieder <jrnieder@gmail.com>
to control@bugs.debian.org.
(Thu, 16 Apr 2009 18:57:06 GMT) (full text, mbox, link).
Information forwarded
to debian-bugs-dist@lists.debian.org, Gerrit Pape <pape@smarden.org>:
Bug#524309; Package git-core.
(Fri, 17 Apr 2009 08:54:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Marc Mutz <marc@kdab.net>:
Extra info received and forwarded to list. Copy sent to Gerrit Pape <pape@smarden.org>.
(Fri, 17 Apr 2009 08:54:03 GMT) (full text, mbox, link).
Message #19 received at 524309@bugs.debian.org (full text, mbox, reply):
Hi Jonathan, On Thursday April 16 2009, Jonathan Nieder wrote: > The relevant tests should probably be skipped when run as root, but it > is easy to work around the problem by building as an unprivileged > user. Yes, worked. Thanks, Marc -- Marc Mutz <marc@kdab.com> | Senior Software Engineer KDAB (Deutschland) GmbH & Co.KG, a KDAB Group Company www.kdab.com || Germany +49-30-521325470 || Sweden (HQ) +46-563-540090 KDAB - Qt Experts - Platform-Independent Software Solutions
Bug reassigned from package 'git-core' to 'src:git'.
Request was from Jonathan Nieder <jrnieder@gmail.com>
to control@bugs.debian.org.
(Mon, 26 Apr 2010 18:45:12 GMT) (full text, mbox, link).
Bug No longer marked as found in versions git-core/1.6.2.3-1.
Request was from Jonathan Nieder <jrnieder@gmail.com>
to control@bugs.debian.org.
(Mon, 26 Apr 2010 18:45:13 GMT) (full text, mbox, link).
Bug Marked as found in versions git/1:1.6.2.3-1.
Request was from Jonathan Nieder <jrnieder@gmail.com>
to control@bugs.debian.org.
(Mon, 26 Apr 2010 18:45:13 GMT) (full text, mbox, link).
Severity set to 'normal' from 'minor'
Request was from Jonathan Nieder <jrnieder@gmail.com>
to control@bugs.debian.org.
(Mon, 26 Apr 2010 18:45:14 GMT) (full text, mbox, link).
Merged 524309 579273.
Request was from Jonathan Nieder <jrnieder@gmail.com>
to control@bugs.debian.org.
(Mon, 26 Apr 2010 18:45:14 GMT) (full text, mbox, link).
Added tag(s) patch.
Request was from Jonathan Nieder <jrnieder@gmail.com>
to control@bugs.debian.org.
(Mon, 26 Apr 2010 18:45:15 GMT) (full text, mbox, link).
Set Bug forwarded-to-address to 'http://thread.gmane.org/gmane.comp.version-control.git/145427'.
Request was from Jonathan Nieder <jrnieder@gmail.com>
to control@bugs.debian.org.
(Mon, 26 Apr 2010 18:45:17 GMT) (full text, mbox, link).
Removed tag(s) patch.
Request was from Jonathan Nieder <jrnieder@gmail.com>
to control@bugs.debian.org.
(Mon, 27 Sep 2010 19:15:45 GMT) (full text, mbox, link).
Added tag(s) upstream and fixed-upstream.
Request was from Jonathan Nieder <jrnieder@gmail.com>
to control@bugs.debian.org.
(Mon, 27 Sep 2010 19:15:46 GMT) (full text, mbox, link).
Added tag(s) pending.
Request was from Anibal Monsalve Salazar <anibal@debian.org>
to control@bugs.debian.org.
(Wed, 16 Feb 2011 19:09:08 GMT) (full text, mbox, link).
Reply sent
to Jonathan Nieder <jrnieder@gmail.com>:
You have taken responsibility.
(Thu, 17 Feb 2011 12:18:34 GMT) (full text, mbox, link).
Notification sent
to Marc Mutz <marc@kdab.net>:
Bug acknowledged by developer.
(Thu, 17 Feb 2011 12:18:34 GMT) (full text, mbox, link).
Message #44 received at 524309-close@bugs.debian.org (full text, mbox, reply):
Source: git
Source-Version: 1:1.7.4.1-1
We believe that the bug you reported is fixed in the latest version of
git, which is due to be installed in the Debian FTP archive:
git-all_1.7.4.1-1_all.deb
to main/g/git/git-all_1.7.4.1-1_all.deb
git-arch_1.7.4.1-1_all.deb
to main/g/git/git-arch_1.7.4.1-1_all.deb
git-core_1.7.4.1-1_all.deb
to main/g/git/git-core_1.7.4.1-1_all.deb
git-cvs_1.7.4.1-1_all.deb
to main/g/git/git-cvs_1.7.4.1-1_all.deb
git-daemon-run_1.7.4.1-1_all.deb
to main/g/git/git-daemon-run_1.7.4.1-1_all.deb
git-doc_1.7.4.1-1_all.deb
to main/g/git/git-doc_1.7.4.1-1_all.deb
git-email_1.7.4.1-1_all.deb
to main/g/git/git-email_1.7.4.1-1_all.deb
git-gui_1.7.4.1-1_all.deb
to main/g/git/git-gui_1.7.4.1-1_all.deb
git-man_1.7.4.1-1_all.deb
to main/g/git/git-man_1.7.4.1-1_all.deb
git-svn_1.7.4.1-1_all.deb
to main/g/git/git-svn_1.7.4.1-1_all.deb
git_1.7.4.1-1.diff.gz
to main/g/git/git_1.7.4.1-1.diff.gz
git_1.7.4.1-1.dsc
to main/g/git/git_1.7.4.1-1.dsc
git_1.7.4.1.orig.tar.gz
to main/g/git/git_1.7.4.1.orig.tar.gz
gitk_1.7.4.1-1_all.deb
to main/g/git/gitk_1.7.4.1-1_all.deb
gitweb_1.7.4.1-1_all.deb
to main/g/git/gitweb_1.7.4.1-1_all.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 524309@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Jonathan Nieder <jrnieder@gmail.com> (supplier of updated git package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Tue, 15 Feb 2011 19:27:38 -0600
Source: git
Binary: git git-man git-core git-doc git-arch git-cvs git-svn git-email git-daemon-run git-gui gitk gitweb git-all
Architecture: all source
Version: 1:1.7.4.1-1
Distribution: unstable
Urgency: low
Maintainer: Gerrit Pape <pape@smarden.org>
Changed-By: Jonathan Nieder <jrnieder@gmail.com>
Description:
git - fast, scalable, distributed revision control system
git-all - fast, scalable, distributed revision control system (all subpacka
git-arch - fast, scalable, distributed revision control system (arch interop
git-core - fast, scalable, distributed revision control system (obsolete)
git-cvs - fast, scalable, distributed revision control system (cvs interope
git-daemon-run - fast, scalable, distributed revision control system (git-daemon s
git-doc - fast, scalable, distributed revision control system (documentatio
git-email - fast, scalable, distributed revision control system (email add-on
git-gui - fast, scalable, distributed revision control system (GUI)
git-man - fast, scalable, distributed revision control system (manual pages
git-svn - fast, scalable, distributed revision control system (svn interope
gitk - fast, scalable, distributed revision control system (revision tre
gitweb - fast, scalable, distributed revision control system (web interfac
Closes: 465776 466471 499002 507476 524309 540001 575917 576887 577471 578752 581691 583693 583699 585725 588103 598245 600566 600785 606975 607044 610423 610481 611608
Changes:
git (1:1.7.4.1-1) unstable; urgency=low
.
* new upstream release (closes: #600566, #575917, #578752, #583693,
#583699, #588103, #507476, #540001, #524309, #581691, #600785,
#577471, #607044, #606975, #610423, #610481).
.
[ Anders Kaseorg ]
* debian/git.docs, debian/rules: deal with RelNotes subdirectory.
* debian/diff/0007-gitk-Take-only-numeric-...diff: new; gitk: do
not error out when git version number contains "-rc".
.
[ Jonathan Nieder ]
* add myself as uploader.
* debian/diff/0003, 0007, 0010-0034: remove, applied upstream.
* debian/rules: accept patches with .patch suffix, too (thx Anders
Kaseorg).
* debian/rules: use patch -N -r- so patch application is idempotent.
* update debian/copyright.
* debian/diff/0001-ident-check-etc-mailname...diff: avoid calls to
gethostbyname when mailname is not an fqdn (closes: #611608).
* debian/diff/0005-gitk-use-...diff: new; gitk: use standard desktop
fonts by default. The appearance for users that already have a
generated ~/.gitk file is not affected (closes: #466471).
* debian/diff/0006-gitk-...diff: new; gitk: avoid spurious matches
in "All fields" search (thx Frédéric Brière, closes: #465776).
* debian/control: git-cvs: recommend cvs2git for one-time conversions
(closes: #585725).
* debian/control: git-core: explain that it still may be needed (thx
Denis Laxalde).
* debian/control: gitweb: allow lynx-cur to satisfy dependency on a
CGI implementation (thx Ivan Shmakov).
* debian/control, debian/rules: new architecture-independent package
git-man: manual pages that were previously in the main git package.
* debian/rules: do not build documentation on autobuilders (closes:
#499002).
* debian/control: Build-Depends-Indep: asciidoc, xmlto, docbook-xsl.
* debian/rules: git-gui: install git-gui--askpass helper to
/usr/lib/git-core (closes: #598245).
* debian/rules: git-doc: install symlink to html documentation in
/usr/share/doc/git (thx Ian Jackson).
* debian/watch: new; point to upstream sources.
* debian/implicit: create DEBIAN/md5sums with correct permissions.
* debian/diff/0003-remove-shebang...diff: new; do not start shell
libraries with #!/bin/sh.
* debian/rules: do not try to strip scripts even if they begin
with "# " in place of "#!".
* debian/diff/0004-pre-rebase-hook-capture...diff: new;
hooks/pre-rebase: use a <<HERE document to prevent syntax checkers
from treating documentation as code.
* debian/implicit: check for debian/$pkg.doc-base.$docid.
* debian/git-doc.doc-base.*: new; catalog provided documentation.
* debian/implicit: check for debian/$pkg.lintian-overrides.
* debian/git.lintian-overrides: new; document some deviations from
lintian guidelines.
* debian/control: Standards-Version: 3.9.1.0.
.
* debian/git.README.Debian: server logs go in /var/log/apache2.
* debian/diff/0002-Revert-Merge-branch-jn-gitweb...diff: remove.
* debian/diff/0006, 0008, 0009-instaweb...diff: remove, no longer
needed.
* debian/rules, debian/control: move gitweb script to the main git
package for use by instaweb; make gitweb into a configuration
package.
* debian/gitweb.NEWS.Debian, debian/git.README.Debian,
debian/gitweb.conf: static files moved to /usr/share/gitweb/static.
* debian/gitweb.conf: disable rename patches (@diff_opts = ()).
* debian/diff/0001-Revert-gitweb-...diff: remove; no longer needed.
* debian/rules: gitweb: move gitweb.cgi script to /usr/share;
add a symlink at /usr/lib/cgi-bin/gitweb.cgi for compatibility.
.
* debian/git.emacsen-install, debian/rules, debian/git.postinst,
debian/git.prerm: put emacs support files in /usr/share/git-core
instead of /usr/share/doc/git/contrib.
* debian/implicit: check for arbitrary debian/$pkg.README.*, not just
README.source and README.Debian.
* debian/git.README.emacs: new; introduction to the emacs support
(text taken from contrib/emacs/README).
.
[ Kevin Ryde ]
* debian/rules, debian/git.emacsen-*, debian/git.postinst,
debian/git.prerm: Make M-x git-status and git-blame modes available
with emacs23 (closes: #576887).
Checksums-Sha1:
454abccda82b0e5ae7d82c60df95f5fe30d51e69 1436 git_1.7.4.1-1.dsc
2c9c9ac6dd6ae284df2282bb0c4145c0ae0e7e35 3266745 git_1.7.4.1.orig.tar.gz
a2cdc8ed70b6c7b7c81050db851eed4ae7c46d98 402484 git_1.7.4.1-1.diff.gz
96abd1b428884ff1658e25460c78990f249dd566 1639718 git-doc_1.7.4.1-1_all.deb
6c4e9a61f6e7e50e626ad6666863eb14aa3115f3 386026 git-arch_1.7.4.1-1_all.deb
452028cba6abaa84d5f3cdf94402d5a6b47455d8 457992 git-cvs_1.7.4.1-1_all.deb
1aa1567131b1f52c30b43b9e9954afb1dd56a9d7 437754 git-svn_1.7.4.1-1_all.deb
c1810309d276d79e3899ac85c9ff8dc022ee89b0 373080 git-daemon-run_1.7.4.1-1_all.deb
e0500154020a1339bbab0d7db6af8d356676540b 390972 git-email_1.7.4.1-1_all.deb
49b76d65cc7c06a16a9c80931b2eccd7d4f7a241 633922 git-gui_1.7.4.1-1_all.deb
c5da6c0326defee5a2772b32f9c2b529757ea555 498734 gitk_1.7.4.1-1_all.deb
4aa64839c62ac780e1e0c3720ac678e7733f3286 383134 gitweb_1.7.4.1-1_all.deb
397d1bb3abf61e4f43951f5b8ad4574e31ddc16e 371460 git-all_1.7.4.1-1_all.deb
ffd6bd7b39b91dd66c5d2b98239492a826cbee9e 1336 git-core_1.7.4.1-1_all.deb
5c133d9d1654d094463e0fddba797de60b1d2e0e 938934 git-man_1.7.4.1-1_all.deb
Checksums-Sha256:
ac242c36ec673683dc6a165ea15ab4659924c90a97ccaa0d53000966a691a2b0 1436 git_1.7.4.1-1.dsc
1855df9f23f8296c24482416cf10bbbaef40f837d30ff02ecf31f2694c325277 3266745 git_1.7.4.1.orig.tar.gz
bfd435ff77f364ac4e6054b8506e2b110703aa53675091b72557dcf943e962b2 402484 git_1.7.4.1-1.diff.gz
46cd7b1ed2338f34ea44ad0b336941d5713be0277300681f3140fecc853483c6 1639718 git-doc_1.7.4.1-1_all.deb
65318f6f273c516cbb885dcd8674c66be1487209d283ea73816988acf4ac5c9c 386026 git-arch_1.7.4.1-1_all.deb
296f41e0b8deeec79f53ce8a11524b6714a6711bcbe08c02c01843e666d5faed 457992 git-cvs_1.7.4.1-1_all.deb
0633ba3b3a9e390ce0b7f2a443f3f717772ae2e62fe0f9497078f080a8dc02f2 437754 git-svn_1.7.4.1-1_all.deb
85a7a8a4e9cfe1ec18dfceb5207b39794a62e35fe91af7d7bb4dd848eaa98f52 373080 git-daemon-run_1.7.4.1-1_all.deb
f470ce38eba3671ba46103289e2a15274610cb8d6698357ee402637f8bde25f8 390972 git-email_1.7.4.1-1_all.deb
662393f15a90faf0749982afcddd9bc393b38acca1fe8fe1f57b6fab11fa8bd4 633922 git-gui_1.7.4.1-1_all.deb
9d40ff6646ae2f1898a9bdef0e3fdebecea3ae2ed8925ac9a458f3e5e3649843 498734 gitk_1.7.4.1-1_all.deb
dec1a6dd4db7e572bb7c54b5774b3d3b67ddbdbc2472dbd609e82e72bbc88013 383134 gitweb_1.7.4.1-1_all.deb
65609c1132f1a11330c50ecfc4b3ab7dc9a0c87ad96991bdfd9f7c4852f41c98 371460 git-all_1.7.4.1-1_all.deb
ac6b3f5d86005b49957b6a6f3ffe4c403bdc41f47ccf811f6f9b735bff17bf99 1336 git-core_1.7.4.1-1_all.deb
2a4ec7d8c40ef8cfc1c107de1df99ababddfa77634e98ca1b2ef8bd54ed961b3 938934 git-man_1.7.4.1-1_all.deb
Files:
19aec48a88c642f378a9933a504fcab5 1436 vcs optional git_1.7.4.1-1.dsc
1276aa1366bd3c670e9c51f1bff12f36 3266745 vcs optional git_1.7.4.1.orig.tar.gz
36e04488680d57b513ac3b840844b94a 402484 vcs optional git_1.7.4.1-1.diff.gz
e7f79fd736d1c476383c52d1cd19496d 1639718 doc optional git-doc_1.7.4.1-1_all.deb
760acf52d5a99ed3fd19178f23372f41 386026 vcs optional git-arch_1.7.4.1-1_all.deb
0dd4d96de84ab8ee6e7fc275430ab49e 457992 vcs optional git-cvs_1.7.4.1-1_all.deb
bbe84f5bb1724082834313cdff3a9cff 437754 vcs optional git-svn_1.7.4.1-1_all.deb
499ea96dbd14deccac0a089c03921779 373080 vcs optional git-daemon-run_1.7.4.1-1_all.deb
0cfb71b4f253fe88269d76b710ce2462 390972 vcs optional git-email_1.7.4.1-1_all.deb
04535918668f71bea565ae7496590254 633922 vcs optional git-gui_1.7.4.1-1_all.deb
a2156ce5c0a15aacdb9df7ae63999703 498734 vcs optional gitk_1.7.4.1-1_all.deb
d3aaef1ded07729024375a9bf1f8e2a1 383134 vcs optional gitweb_1.7.4.1-1_all.deb
e84c9ac9452c37e6011ffc48ca053711 371460 vcs optional git-all_1.7.4.1-1_all.deb
5ccaeef1abbb1debf65c09766c2ff86c 1336 vcs optional git-core_1.7.4.1-1_all.deb
28d0be6d985e3f9bf8071601a6c1c6bf 938934 vcs optional git-man_1.7.4.1-1_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iEYEARECAAYFAk1bqScACgkQGJoyQbxwpv/CiACgidlYAgvKP9U626u4US+/jj1p
4qQAni2trKCqN6+c4N2F/gOvbJU5hgIb
=aIcU
-----END PGP SIGNATURE-----
Reply sent
to Jonathan Nieder <jrnieder@gmail.com>:
You have taken responsibility.
(Thu, 17 Feb 2011 12:18:35 GMT) (full text, mbox, link).
Notification sent
to Faheem Mitha <faheem@email.unc.edu>:
Bug acknowledged by developer.
(Thu, 17 Feb 2011 12:18:35 GMT) (full text, mbox, link).
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Tue, 24 May 2011 07:32:26 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.