Skip to contentSkip to conversation

Cannot reset a repo

DISCUSSION Martin Wendt 3 participants 4 messages Jun 15, 2016 2 messages not in the archive

lore
Share & tools
lore
#0 lore raw

Hi,

I am facing this problem:

- Using git version 1.9.3 (Apple Git-50)
- cloned a fork from GitHub to my local machine:
https://github.com/mar10/cdnjs/
- This repo seems to be broken in some way.
At least it is not clean from the beginning and I am not able to reset git reset --hard only toggles the modified file from
".../sortable" to ".../Sortable" and back
(see attached screenshot)

Is this a known problem (with case sensitivity)? Any suggestions how to fix it?

Thanks
Martin

#1 lore raw
Quoted 13 lines · Martin Wendt

Hi,

I am facing this problem:

- Using git version 1.9.3 (Apple Git-50)
- cloned a fork from GitHub to my local machine:
https://github.com/mar10/cdnjs/
- This repo seems to be broken in some way.
At least it is not clean from the beginning and I am not able to reset git reset --hard only toggles the modified file from
".../sortable" to ".../Sortable" and back
(see attached screenshot)

Quoted 1 line

Is this a known problem (with case sensitivity)?

I think so

Quoted 1 line

Any suggestions how to fix it?

Try to rename Sortable into Sortable.u:
git mv Sortable Sortable.upper
(When that does not work)
git mv sortable sortable.lower

If this is not an option, use a USB Stick, format it with HFS+ "case sensitive" and clone the repo to the stick

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#4 lore raw

arghh, sorry that's embarrassing. I was sure that the Mac filesystem was case sensitive by default, because it's unix based... Thanks for your support.

Quoted 35 lines

Am 07.12.2014 um 11:06 schrieb Torsten Bögershausen <[email protected]>:

Quoted 24 lines · Martin Wendt
Quoted 24 lines

Am 06.12.2014 um 13:14 schrieb Torsten Bögershausen <[email protected]>:

Quoted 13 lines · Martin Wendt

Hi,

I am facing this problem:

- Using git version 1.9.3 (Apple Git-50)
- cloned a fork from GitHub to my local machine:
https://github.com/mar10/cdnjs/
- This repo seems to be broken in some way.
At least it is not clean from the beginning and I am not able to reset git reset --hard only toggles the modified file from
".../sortable" to ".../Sortable" and back
(see attached screenshot)

Quoted 1 line

Is this a known problem (with case sensitivity)?

I think so

Quoted 1 line

Any suggestions how to fix it?

Try to rename Sortable into Sortable.u:
git mv Sortable Sortable.upper
(When that does not work)
git mv sortable sortable.lower

Quoted 6 lines
Quoted 3 lines

If this is not an option, use a USB Stick, format it with HFS+ "case sensitive" and clone the repo to the stick

Thanks for responding.
It is a fork of the 6GB cdnjs repository and I don't own the sortable lib. So renaming is not an option.

Can you fix it a send a pull request to the author on github ?

Quoted 1 line

Also, I am working on a MacBook, which already has a case sensitive file system

#5 lore raw
In reply to Torsten Bögershausen
Quoted 21 lines

Am 06.12.2014 um 13:14 schrieb Torsten Bögershausen <[email protected]>:

Quoted 13 lines · Martin Wendt

Hi,

I am facing this problem:

- Using git version 1.9.3 (Apple Git-50)
- cloned a fork from GitHub to my local machine:
https://github.com/mar10/cdnjs/
- This repo seems to be broken in some way.
At least it is not clean from the beginning and I am not able to reset git reset --hard only toggles the modified file from
".../sortable" to ".../Sortable" and back
(see attached screenshot)

Quoted 1 line

Is this a known problem (with case sensitivity)?

I think so

Quoted 1 line

Any suggestions how to fix it?

Quoted 8 lines

Try to rename Sortable into Sortable.u:
git mv Sortable Sortable.upper
(When that does not work)
git mv sortable sortable.lower

If this is not an option, use a USB Stick, format it with HFS+ "case sensitive" and clone the repo to the stick

Thanks for responding.
It is a fork of the 6GB cdnjs repository and I don't own the sortable lib. So renaming is not an option. Also, I am working on a MacBook, which already has a case sensitive file system.