Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2017-05-30 20:19:48 +0300
committerRebecca Turner <me@re-becca.org>2017-08-23 02:17:29 +0300
commite3f7c849c4f8f5621d184d796b15f74fbb8e0f75 (patch)
tree53765dc9820676df247694c5b3d70539e854eda9
parent32c1222952a433151eac221099dd04a49442fb59 (diff)
test: add-remote-git-submodule cleanup and more helpful errors
Credit: @isaacs Reviewed-By: @iarna PR-URL: https://github.com/npm/npm/pull/16804
-rw-r--r--test/tap/add-remote-git-submodule.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/tap/add-remote-git-submodule.js b/test/tap/add-remote-git-submodule.js
index 86fcaa0ee..6e26712c5 100644
--- a/test/tap/add-remote-git-submodule.js
+++ b/test/tap/add-remote-git-submodule.js
@@ -77,6 +77,9 @@ function bootstrap (t) {
}
function setup (cb) {
+ rimraf.sync(pkg)
+ rimraf.sync(repos)
+
mkdirp.sync(topwt)
fs.writeFileSync(resolve(topwt, 'package.json'), pjChild)
mkdirp.sync(subwt)
@@ -120,12 +123,14 @@ function setup (cb) {
var reposopt = { cwd: repos, env: env }
common.makeGitRepo({
path: subwt,
+ message: 'subwt repo: ' + subwt,
added: ['foo.txt'],
commands: [
git.chainableExec(['clone', '--bare', subwt, 'sub.git'], reposopt),
startDaemon,
[common.makeGitRepo, {
path: topwt,
+ message: 'topwt repo: ' + topwt,
commands: [
git.chainableExec(['submodule', 'add', suburl, 'subpath'], topopt),
git.chainableExec(['commit', '-m', 'added submodule'], topopt),