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

28 Commits

Author SHA1 Message Date
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
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
Eric Salter
a42792cf5c add support for git clean
Add passthrough support for git clean + tests
2014-11-16 22:05:52 -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
f9f3ce43be Replace rimraf with fs-extra 2014-06-20 13:39:23 +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
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
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
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
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
bfddb70e61 Fix commit tree and add test on tree content 2012-09-15 10:49:39 +02:00
feugy
16754a1ab3 Try#2: Fix ending problems that corruptes the remotes fixture repository 2012-09-15 09:58:32 +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
sentientwaffle
c7493894de fix create_tag, closes #1 2012-03-23 08:30:14 -06:00
sentientwaffle
3ef68d9840 initial commit 2012-02-15 07:51:45 -07:00