[BUG] - git-read-tree segfaults
- From
- Jiri Olsa <olsajiri@gmail.com>
- Date
- Mar 10, 2009, 19:34 UTC
- Message-ID
- <35476bd20903101234q71bc520fh18828d7170a4a2f5@mail.gmail.com>
Hi,
I was following the git core tutorial and git-read-tree got me segfault. I accidentaly executed the git-read-tree without "-m -u" options and got segfault.
I can reproduce with the latest git using following script.
----------------------------------------------- #!/bin/sh
GIT=$1
rm -rf crash; mkdir -p crash; cd crash $GIT init echo "xxx" > xxx $GIT add xxx $GIT commit -m "xxx" $GIT checkout -b yyy echo "yyy" > yyy $GIT add yyy $GIT commit -m "yyy" echo "yyy1" >> yyy $GIT commit -a -m "yyy1" $GIT checkout master echo "xxx1" >> xxx $GIT commit -a -m "xxx1" mb=$($GIT merge-base HEAD yyy) $GIT read-tree $mb HEAD yyy -----------------------------------------------
regards, jirka