File tree Expand file tree Collapse file tree 4 files changed +2
-17
lines changed Expand file tree Collapse file tree 4 files changed +2
-17
lines changed Original file line number Diff line number Diff line change @@ -34,8 +34,6 @@ Please use "git help bisect" to get the full man page.'
34
34
OPTIONS_SPEC=
35
35
. git-sh-setup
36
36
37
- _x40=' [0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]'
38
- _x40=" $_x40$_x40$_x40$_x40$_x40$_x40$_x40$_x40 "
39
37
TERM_BAD=bad
40
38
TERM_GOOD=good
41
39
Original file line number Diff line number Diff line change @@ -223,9 +223,6 @@ require_clean_work_tree () {
223
223
" rewrite branches" )
224
224
gettextln " Cannot rewrite branches: You have unstaged changes." >&2
225
225
;;
226
- " pull with rebase" )
227
- gettextln " Cannot pull with rebase: You have unstaged changes." >&2
228
- ;;
229
226
* )
230
227
eval_gettextln " Cannot \$ action: You have unstaged changes." >&2
231
228
;;
@@ -242,9 +239,6 @@ require_clean_work_tree () {
242
239
rebase)
243
240
gettextln " Cannot rebase: Your index contains uncommitted changes." >&2
244
241
;;
245
- " pull with rebase" )
246
- gettextln " Cannot pull with rebase: Your index contains uncommitted changes." >&2
247
- ;;
248
242
* )
249
243
eval_gettextln " Cannot \$ action: Your index contains uncommitted changes." >&2
250
244
;;
Original file line number Diff line number Diff line change @@ -63,11 +63,6 @@ isnumber()
63
63
n=$(( $1 + 0 )) 2> /dev/null && test " $n " = " $1 "
64
64
}
65
65
66
- # Given a full hex object ID, is this the zero OID?
67
- is_zero_oid () {
68
- echo " $1 " | sane_egrep ' ^0+$' > /dev/null 2>&1
69
- }
70
-
71
66
# Sanitize the local git environment for use within a submodule. We
72
67
# can't simply use clear_local_git_env since we want to preserve some
73
68
# of the settings from GIT_CONFIG_PARAMETERS.
Original file line number Diff line number Diff line change @@ -534,7 +534,7 @@ SQ=\'
534
534
# when case-folding filenames
535
535
u200c=$( printf ' \342\200\214' )
536
536
537
- export _x05 _x35 _x40 _z40 LF u200c EMPTY_TREE EMPTY_BLOB ZERO_OID OID_REGEX
537
+ export _x05 _x35 LF u200c EMPTY_TREE EMPTY_BLOB ZERO_OID OID_REGEX
538
538
539
539
# Each test should start with something like this, after copyright notices:
540
540
#
@@ -1425,10 +1425,9 @@ then
1425
1425
fi
1426
1426
1427
1427
# Convenience
1428
- # A regexp to match 5, 35 and 40 hexdigits
1428
+ # A regexp to match 5 and 35 hexdigits
1429
1429
_x05=' [0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]'
1430
1430
_x35=" $_x05$_x05$_x05$_x05$_x05$_x05$_x05 "
1431
- _x40=" $_x35$_x05 "
1432
1431
1433
1432
test_oid_init
1434
1433
@@ -1437,7 +1436,6 @@ OID_REGEX=$(echo $ZERO_OID | sed -e 's/0/[0-9a-f]/g')
1437
1436
OIDPATH_REGEX=$( test_oid_to_path $ZERO_OID | sed -e ' s/0/[0-9a-f]/g' )
1438
1437
EMPTY_TREE=$( test_oid empty_tree)
1439
1438
EMPTY_BLOB=$( test_oid empty_blob)
1440
- _z40=$ZERO_OID
1441
1439
1442
1440
# Provide an implementation of the 'yes' utility; the upper bound
1443
1441
# limit is there to help Windows that cannot stop this loop from
You can’t perform that action at this time.
0 commit comments