Carthage: Local Git Repos?

Created on 24 Mar 2015  路  6Comments  路  Source: Carthage/Carthage

I thought it was working, but then I deleted my .carthage directory and ... NO MORE.

I'd like the ability to do:

git "~/testProj" "develop"

as an option for Cartfile

checkout question update

Most helpful comment

This works but you have to use a file URL

git "file:///Users/neilpa/code/project" "branch"

All 6 comments

This works but you have to use a file URL

git "file:///Users/neilpa/code/project" "branch"

Ok so what am I doing wrong here?

My Cartfile is:
git "file:///Users/jstein/devel/GDL90/" "master"

I can type:

git clone file:///Users/jstein/devel/GDL90/

No problem.

When I try to use Carthage it reports:

fatal: Not a git repository (or any of the parent directories): .git

screen shot 2015-03-24 at 5 22 47 am

I'm running 0.6.3 installed from home-brew

Also I can do git rev-parse master in the GDL90 repo and it gives me:

f341a51c97c67f161e4e8ae2b023429fab7bdf27

Ok so I've fixed the problem - but I'm not exactly sure what it means.

I removed my /users/jstein/Library/Caches/org.carthage.CarthageKit directory and suddenly everything started working. I'm not sure how i got into this situation but I wonder if its a bug of some sort?

Carthage's repository cache probably still had a remote set up using the previous path. Deleting the caches folder would force it to re-clone, resolving the problem.

Sorry about the trouble! But it sounds like everything is good to go here now. :sparkles:

Is there a way to add an option to "reset cache" or something?

We'd rather not do that, and instead fix any issues that arise from using the repository cache. An explicit command to clear it seems like a workaround for a bug. :wink:

I don't know what the specific bug is here, or else we could look into it.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mdiep picture mdiep  路  3Comments

itinance picture itinance  路  3Comments

faustperic picture faustperic  路  3Comments

shift00 picture shift00  路  3Comments

willhains picture willhains  路  3Comments