Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Conversation

cblp
Copy link

@cblp cblp commented Aug 12, 2015

I'm trying to solve one particular problem — to get a branch name for a repository inside a given path.

I'm doing

var GitUtils = require('git-utils')
console.log(GitUtils.open(path).getShortHead())

But open performs too slow on sshfs. It takes about 5 or 6 seconds to getSubmodulePaths. The other code takes about 10 ms.

I suggest to delay openSubmodules for the time when it will be needed, and to not call it in open.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants