Giter Site home page Giter Site logo

gitkit-js's People

Contributors

haroenv avatar samypesse avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gitkit-js's Issues

Add table of comparison with nodegit.org

What is the effective difference between this and NodeGit? Maybe the fact it runs in the browser? Can we have a table of comparison between both in the README so that we can understand what are the differences and adapt to our use cases?

Thanks.

Add support for npm

As stated at NodeOS/NodeOS#67 (comment), add support to make gitkit capable to be used by npm as a valid git cli command. Needed functionality is:

  • git config --get remote..url
  • git rev-list -n1 master
  • git checkout [something]
  • git clone [param] [param]
  • git clone --template=[value] --mirror [param] [param]

Trying to get in touch regarding a security issue

Hey there!

I'd like to report a security issue but cannot find contact instructions on your repository.

If not a hassle, might you kindly add a SECURITY.md file with an email, or another contact method? GitHub recommends this best practice to ensure security issues are responsibly disclosed, and it would serve as a simple instruction for security researchers in the future.

Thank you for your consideration, and I look forward to hearing from you!

(cc @huntr-helper)

API methods

Hi! Very interesting project. Thanks a lot for sharing!

I was wondering whether you'd consider revising naming conventions to be a bit less verbose and closer to git's syntax. What I mean is:

const git = new GitKit({
  repo: REPOSITORY_URL,
  user: REPOSITORY_USER
});

git.commit('initial commit, '*');
git.commit('initial commit, [
  'app.js',
  'scripts.js'
]);

git.branch.current()
git.branch.checkout('develop/feature/profile-update')

Not all of them would be as simple of course, since checkout() might also need to be accompanied by checkoutNew etc. but I hope you know what I mean.

Path must be a string. Received undefined

Using GitKit v0.1.0 to clone a repository with isBare = false I get the aforementioned error. Setting isBare to true doesn't give the error.

var isBare = false;
var repo = GitKit.Repository.createWithFS(NodeFS('/tmp/repo'), isBare);
var transport = new GitKit.HTTPTransport('https://github.com/marcuswhybrow/marcus.codes.git');

GitKit.RepoUtils.init(repo)
    .then(() => GitKit.TransferUtils.clone(repo, transport))

This is my stack trace:

"assertPath (path.js:8:11)",
"Object.posix.join (path.js:479:5)",
"Record.Repository.getGitPath (/var/task/node_modules/gitkit/lib/models/repo.js:65:43)",
"Record.Repository.readGitFile (/var/task/node_modules/gitkit/lib/models/repo.js:75:21)",
"Function.Ref.readFromRepo (/var/task/node_modules/gitkit/lib/models/ref.js:85:17)",
"Object.checkout (/var/task/node_modules/gitkit/lib/RepoUtils/checkout.js:79:16)",
"/var/task/node_modules/gitkit/lib/TransferUtils/clone.js:18:26",
"_fulfilled (/var/task/node_modules/gitkit/node_modules/q/q.js:834:54)",
"self.promiseDispatch.done (/var/task/node_modules/gitkit/node_modules/q/q.js:863:30)",
"Promise.promise.promiseDispatch (/var/task/node_modules/gitkit/node_modules/q/q.js:796:13)"

Remove requirement for git for installation

It looks like this requires a command line git before it can be installed because when I try to install this in a container on https://hyperdev.com/, I get the following in error logs:

 ERR! git clone --template=/app/.npm/_git-remotes/_templates --mirror [email protected]:deoxxa/dissolve.git /app/.npm/_git-remotes/git-github-com-deoxxa-dissolve-git-4ec7095e: undefined
npm ERR! git clone --template=/app/.npm/_git-remotes/_templates --mirror [email protected]:deoxxa/dissolve.git /app/.npm/_git-remotes/git-github-com-deoxxa-dissolve-git-4ec7095e: undefined
 ERR! Linux 4.4.8-fc
npm ERR! argv "/app/.nodejs/bin/node" "/app/.nodejs/bin/npm" "install"
npm ERR! node v4.4.3
npm ERR! npm  v2.15.1
 ERR! code ENOGIT

npm ERR! not found: git
npm ERR!

npm 
ERR! Failed using git.
npm 
ERR! This is most likely not a problem with npm itself.
npm ERR! Please check if you have git installed and in your PATH.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.