Commit a0a9675
update-index --split-index: do not split if $GIT_DIR is read only
If $GIT_DIR is read only, we can't write $GIT_DIR/sharedindex. This
could happen when $GIT_INDEX_FILE is set to somehwere outside
$GIT_DIR.
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent c18b80a commit a0a9675
1 file changed
Lines changed: 10 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2030 | 2030 | | |
2031 | 2031 | | |
2032 | 2032 | | |
2033 | | - | |
| 2033 | + | |
| 2034 | + | |
2034 | 2035 | | |
2035 | 2036 | | |
2036 | 2037 | | |
2037 | 2038 | | |
2038 | 2039 | | |
2039 | 2040 | | |
2040 | | - | |
| 2041 | + | |
| 2042 | + | |
| 2043 | + | |
| 2044 | + | |
| 2045 | + | |
| 2046 | + | |
| 2047 | + | |
2041 | 2048 | | |
2042 | 2049 | | |
2043 | 2050 | | |
| |||
2070 | 2077 | | |
2071 | 2078 | | |
2072 | 2079 | | |
2073 | | - | |
| 2080 | + | |
2074 | 2081 | | |
2075 | 2082 | | |
2076 | 2083 | | |
| |||
0 commit comments