1
0
mirror of https://github.com/danog/gift.git synced 2024-11-26 20:04:47 +01:00
Commit Graph

13 Commits

Author SHA1 Message Date
Luke Plaster
1eb737244d Applied tweaks from #38 2018-01-23 00:01:05 +08:00
Luke Plaster
bff9d42b60 Fixed shell expansion/word splitting and injection vulns
The `exec` call in `git.coffee` will be replaced soon but this fixes the issues for now.

Closes #23.
2018-01-22 23:52:27 +08:00
Junil Kim
76002ca549 support shallow clone a repo on a specific branch. (#91)
ex) git clone <git-url> --depth 1 --branch <name>
2016-11-02 10:11:48 +08:00
Luke Plaster
ab4de6660f Maintaining backward compatibility in clone() signature 2015-11-16 19:18:42 +08:00
Peter Dave Hello
d099f2fab2 Support git's shallow clone 2015-11-16 15:18:22 +08:00
Maximilian Schüßler
e4557ffc39 Remove trailing whitespaces 2014-06-20 02:08:29 +02:00
feugy
abd70f5111 Merge repositories.
Includes:
- Repo.commit: send stdout/stderr to callback lile other methods
- Repo.commit: possibility to specify author
- git.refs: ignore error code 1 which means that no refs are available.
- git: use binary encoding for child_process.exec() to allow binary files content retrieval from history.
2014-02-08 20:51:01 +01:00
Sergey Kovalyov
ae25cf4d40 Clone using HTTPS to avoid authentication prompt 2013-10-12 13:46:45 +02:00
Sergey Kovalyov
0d951d75d4 Disable Git.clone() test
This test fails on Travis as cloning from GitHub requires accepting the
host authenticity, expects user input and eventually fails on timeout.
It makes sense to uncomment this test only locally.
2013-09-24 10:37:19 +02:00
Sergey Kovalyov
b71c18f93e Git.init() extended with bare parameter
* When bare parameter is set to true, bare repository is initialized.
* Tests added for bare and non-bare initialization.
* Documentaiton updated.
2013-09-23 18:20:31 +02:00
Sergey Kovalyov
a197fe7ba0 Git.clone() added
* Wrapper for `git clone` command.
* Test added and custom 30000 timeout is set to it as cloning requires
quite some time.
* Documentation updated.
2013-09-23 18:19:19 +02:00
feugy
1ed508199f - Repo.commit: send stdout/stderr to callback lile other methods
- Tests: use a working 'remotes' fixture. Old one was broken.
- Tests: use chai instead of should: same API, but work properly on Date:
  https://github.com/visionmedia/should.js/pull/56
- Tests: use rimraf instead of executing "rm -rf": allow to work on windows
- Tests: configure mocha to execute coffee-script with --compilers option
2012-09-14 09:12:26 +02:00
sentientwaffle
3ef68d9840 initial commit 2012-02-15 07:51:45 -07:00