Commit Graph

124 Commits

Author SHA1 Message Date
Mat Scales
126da9ee12 Unregister and login commands 2015-03-29 17:56:04 -07:00
Nils Winkler
7e0a2ea4cb Added check for empty remote or no protocol set. 2015-03-24 20:36:15 +01:00
Nils Winkler
912808b672 Added support for caching hosts that support shallow cloning. 2015-03-24 20:22:15 +01:00
Nils Winkler
a352d51711 Using a function reference instead of calling directly from constructor 2015-03-24 17:14:28 +01:00
Nils Winkler
4ad5ed64d7 Automatically detecting _smart Git hosts_.
Added logic to automatically detect smart Git hosts that allow shallow
cloning. This is done by sending an `ls-remote` request to the server
and then evaluating the returned HTTP header fields. For this, Curl
verbose logging is enabled for the `ls-remote` request, since Curl
verbose logging sends the returned HTTP headers to `stderr`.

If the `stderr` output contains the desired header

  Content-Type: application/x-git-upload-pack-advertisement

then the server supports shallow cloning.

This approach uses Git and Curl for the heavy lifting. Instead of
implementing the request to the server using a simple HTTP client, Git
is used, since it takes care of authentication using stored credentials.

The used approach should also work for BitBucket, which only sends the
Content-Type header when a specific user agent is used. Using Git to
make the request enables this behavior.

The function to detect the smart Git host
(`GitRemoteResolver.prototype._supportsShallowCloning`) returns a
promise that is resolved when the server's request is evaluated. The
promise handling required an addition to `GitHubResolver.js` - to always
resolve the promise to `true`, since GitHub supports shallow cloning.

Added test cases to verify the new functionality.
2015-03-24 17:13:18 +01:00
Adam Stankiewicz
182d92f9bd test: Fix SvnResolver tests on all platforms 2015-02-28 23:56:17 -08:00
Adam Stankiewicz
61a68a9e38 test: Replace dejavu repo with pure (dejavu moved) 2015-02-28 19:52:40 -08:00
Adam Stankiewicz
c7df6f50ca Add AppVeyor config for Windows CI 2015-01-11 03:08:43 +01:00
Adam Stankiewicz
df71d251f0 Disable SVN testing for unsuppoted hosts (e.g. AppVeyor) 2015-01-11 03:08:41 +01:00
Burak Yigit Kaya
623f6e9542 Use tar-fs instead of tar for faster TAR extraction 2014-09-07 19:29:37 +02:00
Sindre Sorhus
321ddabfd5 Merge pull request #1502 from bower/fix/bowerrc-cwd
Read .bowerrc from specified cwd, fixes #1301
2014-09-06 18:15:55 +02:00
Adam Stankiewicz
daaf21a4fe Merge pull request #1495 from mitogh/link-issues
Update the references to the issues and pulls in the CHANGELOG.md file
2014-09-06 14:40:55 +02:00
Adam Stankiewicz
06a8f2afab Read .bowerrc from specified cwd, fixes #1301 2014-09-06 02:38:40 +02:00
Tim Monks
192e5af797 Add integration tests for bower commands 2014-07-02 11:16:12 +01:00
Adam Stankiewicz
17bd60e3e9 [#1356] Disable caching for local resources 2014-06-22 22:05:13 +02:00
Martin Hansen
b8df18481f Ignore does now not apply to any file in main #547 2014-06-20 19:48:00 +02:00
Andrew Eisenberg
1690dd4728 Warn users when installing package with missing properties.
Fix for issue #694. Test case included.
2014-06-20 19:00:19 +02:00
Adam Stankiewicz
034326c984 Add some tests and documentation for #1310 2014-06-05 23:52:48 +02:00
Adam Stankiewicz
ac29e24c1b Allow for short commit SHA, closes #990 2014-04-25 02:09:10 +02:00
Ahmad Nassri
e8c071304c using 'svn export' for efficiency. Closes #1224 2014-04-11 09:00:41 -04:00
Adam Stankiewicz
5a5cf31aba Make bower concurrent friendly, fixes #933 2014-04-04 19:09:18 +02:00
jevakallio
b049bdb33f Fix problem with dashes and underscores in branch/tag names 2014-02-27 17:31:01 +02:00
Mat Scales
c517b98bae Merge pull request #1055 from ahmadnassri/master
Subversion Support
2014-02-10 13:22:39 +00:00
Chris Gross
1831e507fe scripts/hooks functionality added 2014-02-06 15:40:38 -05:00
Ahmad Nassri
a1154bf383 Merge remote-tracking branch 'upstream/master'
Conflicts:
	README.md
2014-01-30 16:56:29 -05:00
Greg Bergé
3dbddfba41 Fix reading versions from cache directory.
When we write into directory we use encodeURIComponent, but when we read, we did nothing. Now we use decodeURIComponent to read the correct version and match the correct cache directory.
2014-01-27 22:55:07 +01:00
Ahmad Nassri
ea60442fd6 fixing failed travis test 2014-01-19 13:22:09 -05:00
Ahmad Nassri
3b98e4962a final working version, with unit tests update README with examples 2014-01-19 13:09:49 -05:00
Kenneth Lee
53f563ec08 added svn+file for local file system checkouts 2014-01-16 20:07:04 +00:00
Kenneth Lee
d27c36c70c fixed the gitResolver tags and associated test 2014-01-16 19:52:02 +00:00
Kenneth Lee
0c7b09c237 created svn tests in resolver factory 2014-01-16 19:18:27 +00:00
Ahmad Nassri
10d2d566a3 WIP working off trunk and maybe tags, not fully tested, not fully ready for PR 2014-01-15 17:46:43 -05:00
Adam Stankiewicz
40dbb0ffaf Ignore prerelease versions if possible, fixes #1017 2013-12-31 15:43:36 +01:00
Jonathan Mahoney
7a501164a9 Test for b632984 (Allow for existence of query-string parameters in URL) 2013-10-14 09:02:18 +01:00
Mat Scales
d3991ee672 Close GH-900: Merge all the decompress-zip work and add small improvements. Fixes #873, Fixes #896 2013-10-07 00:29:29 +01:00
André Cruz
60c522a696 Fix absolute paths ending with / not going through the FsResolver, fixes #898. 2013-10-04 12:38:08 +01:00
André Cruz
dcc396234c Fix bower not looking tags when target looks like a semver, fixes #872. 2013-09-28 12:08:46 +01:00
André Cruz
7c2384cb94 Improve last commit. 2013-09-28 01:51:22 +01:00
André Cruz
5b1dd15749 Replace dir separators with dashes before storing into the resolve cache. 2013-09-28 01:34:49 +01:00
André Cruz
7ecd70a90b Fix bower update not correctly catching up branch commits. 2013-09-10 18:07:26 +01:00
André Cruz
3d84bcc7ad Fix ignore of nested folders, fixes #814. 2013-08-23 13:57:15 +01:00
André Cruz
4402b80ec9 Close GH-794: Fallback to standard git clone if download/untar fails . 2013-08-17 22:37:03 +01:00
Andre Cruz
1ee8abf098 Fix tests in windows. 2013-08-17 13:49:04 +01:00
Trask Stalnaker
518f3d2a8f Close GH-773: Order tags by semver build metadata. Fixes #0, Fixes #0, Fixes #0, Fixes #0, Fixes #0, Fixes #0, Fixes #0, Fixes #0 2013-08-17 11:39:51 +01:00
André Cruz
01c499d73f Update bower-config 0.4.0 that suffixes the tmp dir with "user/bower". 2013-08-16 09:44:58 +01:00
André Cruz
eff97c4d28 Match against a branch even if it's a semver version/range that does not exist, fixes #771. 2013-08-15 01:14:54 +01:00
André Cruz
d08efcfe3c Fix wrong tests. 2013-08-11 20:57:35 +01:00
André Cruz
088c488e2d CS. 2013-08-11 18:44:53 +01:00
André Cruz
64ef934a3c Increase timeouts slightly of two tests. 2013-08-11 18:43:29 +01:00
André Cruz
39b690e96a Add missing tests. 2013-08-11 18:32:26 +01:00