Defoncesko
Defoncesko

Reputation: 687

Cannot create repository with ungit

After installing ungit, I tried to test it with a mock folder (testungit).

I used ungit CLI, then I have got this page.

enter image description here

I would like to have this page to create a repository.

enter image description here

During this installation, I had those lines :

npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"v0.10.29","npm":"1.4.14"})

> [email protected] preinstall /usr/local/lib/node_modules/ungit/node_modules/getmac/node_modules/extract-opts/node_modules/typechecker
> node ./cyclic.js

npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"v0.10.29","npm":"1.4.14"})
npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"v0.10.29","npm":"1.4.14"})
npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"v0.10.29","npm":"1.4.14"})
npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"v0.10.29","npm":"1.4.14"})
npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"v0.10.29","npm":"1.4.14"})
npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"v0.10.29","npm":"1.4.14"})
npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"v0.10.29","npm":"1.4.14"})
npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"v0.10.29","npm":"1.4.14"})
npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"v0.10.29","npm":"1.4.14"})
npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"v0.10.29","npm":"1.4.14"})

Is that a problem ?

I don't know if I have to change something in .ungitrc

Upvotes: 2

Views: 445

Answers (1)

VonC
VonC

Reputation: 1329262

In your testungit folder, you can type:

git rev-parse --git-dir
# or even
cd "$(git rev-parse --show-toplevel)"

If there is a git repo defined in one of the parent folders, that will give you the actual root folder of that repo (as in "Is there a way to get the git root directory in one command?").

Upvotes: 2

Related Questions