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

55 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
Peter Dave Hello
d42dc58cee Upgrade npm package dependencies (#100) 2017-11-06 21:14:24 +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
cjbarth
cced2057ea Add support to describe a commit (#88) 2016-07-05 12:04:16 +08:00
Louis De Bevere
eaf7a6f2ee Improve tests 2016-03-09 12:01:59 +01:00
Louis De Bevere
d6ed167156 Pass options to git checkout 2016-03-09 11:53:54 +01: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
Luke Plaster
6a59036f18 Merge pull request #45 from 007design/master
add optional arguments/options to status command
2014-11-17 21:21:39 +01:00
Luke Plaster
43e5d51755 Newlines or something 2014-11-17 17:56:25 +01:00
Eric Salter
a42792cf5c add support for git clean
Add passthrough support for git clean + tests
2014-11-16 22:05:52 -05:00
Daniel Hinds-Bond
a4f691afe1 add options to status 2014-10-06 08:40:06 -05:00
Luke Plaster
03a024e7a3 Merge pull request #33 from shaoshing/no-branch
Fix error when getting the current branch but it is checked out to a commit
2014-08-21 17:48:43 +02:00
Shaoshing
16842b87b1 Add test to reproduce the error caused by (no branch). 2014-07-07 17:44:35 -04:00
Maximilian Schüßler
e1a8fc6e95 Cleanup reset fixture 2014-07-06 22:22:26 +02:00
Maximilian Schüßler
f9f3ce43be Replace rimraf with fs-extra 2014-06-20 13:39:23 +02:00
Maximilian Schüßler
e4557ffc39 Remove trailing whitespaces 2014-06-20 02:08:29 +02:00
Maximilian Schüßler
365843e071 Reinitialize the copied git test repos 2014-06-20 01:58:56 +02:00
Maximilian Schüßler
367b12b2d7 Escape whitespaces in pgp signature test 2014-06-19 22:07:14 +02:00
Maximilian Schüßler
4a7aa57a6b Fix deprecated should calls 2014-06-19 21:53:13 +02:00
Maximilian Schüßler
78948e2553 💄 Remove debug code 2014-06-19 21:48:36 +02:00
Maximilian Schüßler
84df9b382f Add tests for repo.checkoutFile 2014-06-19 21:25:35 +02:00
Maximilian Schüßler
91495b175d Add tests for repo.reset 2014-06-19 21:11:56 +02:00
Maximilian Schüßler
cfc8c9c256 Move fixtures/reset 2014-06-19 21:11:08 +02:00
Maximilian Schüßler
7e778ec1aa Add fixtures for reset test 2014-06-19 19:16:58 +02:00
Lance Chen
d209528ef1
Add test cases and fixtures for gpgsig parsing
Signed-off-by: Lance Chen <cyen0312@gmail.com>
2014-05-18 01:23:02 +08:00
Wil Chung
c8a7addd11 can now parse raw diff format 2014-03-13 13:05:22 -07:00
Wil Chung
06e335a875 can stream blob data 2014-03-05 18:25:47 -08:00
feugy
aba4c6ce6e Fix default identity of repo tests 2014-02-12 18:39:19 +01: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
Luke Plaster
d0e7e53b39 Test fix: corrected use of should to assert typeof 2013-11-19 15:52:11 +01:00
Luke Plaster
982d556215 Merge pull request #29 from drd/master
Add read-only `git config`
2013-10-12 06:31:09 -07:00
Sergey Kovalyov
ae25cf4d40 Clone using HTTPS to avoid authentication prompt 2013-10-12 13:46:45 +02:00
Eric O'Connell
2ce32baf54 rename values to items 2013-10-06 10:05:57 -07:00
Eric O'Connell
9ef8c80096 Add basic support for reading git config 2013-10-05 15:29:34 -07: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
Luke Plaster
4b4c8030c8 locked down the signature of Repo#sync with unit tests and an accurate representation in the README 2013-03-17 17:00:40 +00:00
Luke Plaster
1846098db7 for Travis: make use of Repo#identify to ensure that our repository has an identity set when running the #create_tag test 2013-03-17 15:21:02 +00:00
Luke Plaster
2ece84faf6 added Repo#identity and Repo#identify with a unit test 2013-03-14 23:27:37 +00:00
Luke Plaster
92972683cb [test fix] pass a properly formed octal to fs.mkdir 2013-03-13 21:40:41 +00:00
Daniel Nagy
bc3f389ee6 fix unittests 2013-03-13 21:24:57 +00:00
feugy
604528980e Status: take new files in account with type 'N'
Repo.add: allow option usage to specify --all
2012-09-15 12:36:47 +02:00
feugy
157e076125 Tree: fix find when searching inside trees. 2012-09-15 11:59:24 +02:00
feugy
bfddb70e61 Fix commit tree and add test on tree content 2012-09-15 10:49:39 +02:00
feugy
3e966bc8d5 Fix ending problems that corruptes the remotes fixture repository 2012-09-15 09:49:35 +02:00
feugy
6fb57d68c7 - Repo.commit: possibility to specify author 2012-09-14 09:42:31 +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