# git checkout bug on Win7 x64

2 messages from 2013-01-11 to 2013-01-11. Participants: Ishayahu Lastov, Konstantin Khomoutov.
Thread: https://gitlist.dev/t/32590

## Ishayahu Lastov, 2013-01-11 07:30

Subject: git checkout bug on Win7 x64
Message-ID: <CAJ52sWnm23pLibG24PZm0UB=_tk7JahNx0c53E1udJG4D3yvvQ@mail.gmail.com>
URL: https://gitlist.dev/e/CAJ52sWnm23pLibG24PZm0UB%3D_tk7JahNx0c53E1udJG4D3yvvQ%40mail.gmail.com

```
This is my session on Win7 x64:
Microsoft Windows [Version 6.1.7601]
(c) Корпорация Майкрософт (Microsoft Corp.), 2009. Все права защищены.

C:\Dropbox\Dropbox\Wesnoth\Apocryphs>cd Apokryphs.Orks

C:\Dropbox\Dropbox\Wesnoth\Apocryphs\Apokryphs.Orks>git status
# On branch master
# Your branch is behind 'origin/master' by 3 commits, and can be fast-forwarded.

#
# Changes not staged for commit:
#   (use "git add <file>..." to update what will be committed)
#   (use "git checkout -- <file>..." to discard changes in working directory)
#
#       modified:   scenarios/01_NothernVillage.cfg
#
no changes added to commit (use "git add" and/or "git commit -a")

C:\Dropbox\Dropbox\Wesnoth\Apocryphs\Apokryphs.Orks>cd scenarios

C:\Dropbox\Dropbox\Wesnoth\Apocryphs\Apokryphs.Orks\scenarios>git status
# On branch master
# Your branch is behind 'origin/master' by 3 commits, and can be fast-forwarded.

#
# Changes not staged for commit:
#   (use "git add <file>..." to update what will be committed)
#   (use "git checkout -- <file>..." to discard changes in working directory)
#
#       modified:   01_NothernVillage.cfg
#
no changes added to commit (use "git add" and/or "git commit -a")

C:\Dropbox\Dropbox\Wesnoth\Apocryphs\Apokryphs.Orks\scenarios>git checkout -- 01
_NothernVillage.cfg

C:\Dropbox\Dropbox\Wesnoth\Apocryphs\Apokryphs.Orks\scenarios>git status
# On branch master
# Your branch is behind 'origin/master' by 3 commits, and can be fast-forwarded.

#
# Changes not staged for commit:
#   (use "git add <file>..." to update what will be committed)
#   (use "git checkout -- <file>..." to discard changes in working directory)
#
#       modified:   01_NothernVillage.cfg
#
no changes added to commit (use "git add" and/or "git commit -a")

C:\Dropbox\Dropbox\Wesnoth\Apocryphs\Apokryphs.Orks\scenarios>

As I understand after last "git checkout" in "git status" I should see
that I gave no changes. It looks like an bug, isn't it?

--

сохраняйте, пожалуйста, при ответе исходный текст письма

С уважением,
начальник отдела технической поддержки
Московского Еврейского Общинного Центра
Ишаяу Ластов
телефон: +7-495-645-05-16
моб      : +7-901-569-81-86
с 12 до 18, с воскресенья по четверг

```

## Konstantin Khomoutov, 2013-01-11 09:54

Subject: Re: git checkout bug on Win7 x64
Message-ID: <20130111135459.8f3d10614ca052045b2982f2@domain007.com>
URL: https://gitlist.dev/e/20130111135459.8f3d10614ca052045b2982f2%40domain007.com
In-Reply-To: <CAJ52sWnm23pLibG24PZm0UB=_tk7JahNx0c53E1udJG4D3yvvQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

```
On Fri, 11 Jan 2013 11:30:01 +0400
Ishayahu Lastov <meoc-it-JGs/UdohzUI@public.gmane.org> wrote:

[...]
> As I understand after last "git checkout" in "git status" I should see
> that I gave no changes. It looks like an bug, isn't it?

Looks like an EOL-conversion problem rather typical to Windows, see
http://stackoverflow.com/a/2016426/720999

-- 

```
