Staging
v0.5.1
https://github.com/git/git
Raw File
Tip revision: 362de916c06521205276acb7f51c99f47db94727 authored by Junio C Hamano on 10 June 2013, 00:16:20 UTC
Git 1.8.3.1
Tip revision: 362de91
t7062-wtstatus-ignorecase.sh
#!/bin/sh

test_description='git-status with core.ignorecase=true'

. ./test-lib.sh

test_expect_success 'status with hash collisions' '
	# note: "V/", "V/XQANY/" and "WURZAUP/" produce the same hash code
	# in name-hash.c::hash_name
	mkdir V &&
	mkdir V/XQANY &&
	mkdir WURZAUP &&
	touch V/XQANY/test &&
	git config core.ignorecase true &&
	git add . &&
	# test is successful if git status completes (no endless loop)
	git status
'

test_done
back to top