Johannes Schindelin 671f675b5b mingw: ensure getcwd() reports the correct case
When switching the current working directory, say, in PowerShell, it is
quite possible to use a different capitalization than the one that is
recorded on disk. While doing the same in `cmd.exe` adjusts the
capitalization magically, that does not happen in PowerShell so that
`getcwd()` returns the current directory in a different way than is
recorded on disk.

Typically this creates no problems except when you call

	git log .

in a subdirectory called, say, "GIT/" but you switched to "Git/" and
your `getcwd()` reports the latter, then Git won't understand that you
wanted to see the history as per the `GIT/` subdirectory but it thinks you
wanted to see the history of some directory that may have existed in the
past (but actually never did).

So let's be extra careful to adjust the capitalization of the current
directory before working with it.

Reported by a few PowerShell power users ;-)

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2015-12-11 07:04:22 +01:00
2015-12-11 07:04:02 +01:00
2015-12-11 07:04:02 +01:00
2015-12-10 19:41:33 +01:00
2015-08-03 11:01:27 -07:00
2015-08-25 14:57:08 -07:00
2015-08-25 14:57:08 -07:00
2015-08-11 13:48:15 -07:00
2015-05-05 21:00:23 -07:00
2015-12-10 19:37:36 +01:00
2015-09-28 15:33:56 -07:00
2015-08-03 11:01:21 -07:00
2015-08-03 11:01:21 -07:00
2015-08-03 11:01:27 -07:00
2015-12-10 19:41:24 +01:00
2015-05-20 10:19:12 -07:00
2015-06-29 11:39:10 -07:00
2015-06-25 10:47:46 -07:00
2015-09-28 19:16:54 -07:00
2015-09-28 14:57:10 -07:00
2015-05-26 13:24:46 -07:00
2015-12-10 19:37:36 +01:00
2015-08-19 14:48:56 -07:00
2015-08-03 11:01:18 -07:00
2015-12-08 14:12:45 -08:00
2015-09-28 15:28:31 -07:00
2015-09-28 15:33:56 -07:00
2015-08-03 11:01:27 -07:00
2015-09-04 10:43:23 -07:00
2015-08-25 14:57:09 -07:00
2015-08-25 14:57:08 -07:00
2015-12-04 11:39:19 -08:00
2015-06-05 12:17:37 -07:00
2015-05-22 09:33:08 -07:00
2015-08-25 14:57:08 -07:00
2015-08-25 14:57:09 -07:00
2015-09-28 19:16:54 -07:00
2015-09-09 14:30:35 -07:00
2015-06-05 12:17:37 -07:00
2015-08-11 14:29:36 -07:00

Git for Windows

Join the chat at https://gitter.im/git-for-windows/git

This is the source code of Git for Windows, forked from Git.

This project is run by a governance model. If you encounter problems, you can report them as GitHub issues, discuss them on Git for Windows' Google Group, and contribute bug fixes.

Description
No description provided
Readme 630 MiB
Languages
C 50.5%
Shell 38.7%
Perl 4.5%
Tcl 3.2%
Python 0.8%
Other 2.1%