Lines Matching full:git
17 test('npm version from-git with a valid tag creates a new commit', function (t) {
23 t.ifError(er, 'git tag ran without error')
24 npm.config.set('sign-git-commit', false)
25 npm.config.set('sign-git-tag', false)
26 npm.commands.version(['from-git'], checkVersion)
30 var git = require('../../lib/utils/git.js')
32 git.whichAndExec(
40 t.ifError(er, 'git log ran without issue')
47 test('npm version from-git with a valid tag updates the package.json version', function (t) {
53 t.ifError(er, 'git tag ran without error')
54 npm.config.set('sign-git-commit', false)
55 npm.config.set('sign-git-tag', false)
56 npm.commands.version(['from-git'], checkManifest)
70 test('npm version from-git strips tag-version-prefix', function (t) {
78 t.ifError(er, 'git tag ran without error')
79 npm.config.set('sign-git-commit', false)
80 npm.config.set('sign-git-tag', false)
82 npm.commands.version(['from-git'], checkVersion)
86 var git = require('../../lib/utils/git.js')
88 git.whichAndExec(
96 t.ifError(er, 'git log ran without issue')
104 test('npm version from-git only strips tag-version-prefix if it is a prefix', function (t) {
111 t.ifError(er, 'git tag ran without error')
112 npm.config.set('sign-git-commit', false)
113 npm.config.set('sign-git-tag', false)
115 npm.commands.version(['from-git'], checkVersion)
119 var git = require('../../lib/utils/git.js')
121 git.whichAndExec(
129 t.ifError(er, 'git log ran without issue')
136 test('npm version from-git with an existing version', function (t) {
142 t.ifError(er, 'git tag ran without error')
143 npm.config.set('sign-git-commit', false)
144 npm.config.set('sign-git-tag', false)
145 npm.commands.version(['from-git'], checkVersion)
154 test('npm version from-git with an invalid version tag', function (t) {
160 t.ifError(er, 'git tag ran without error')
161 npm.config.set('sign-git-commit', false)
162 npm.config.set('sign-git-tag', false)
163 npm.commands.version(['from-git'], checkVersion)
172 test('npm version from-git without any versions', function (t) {
177 t.ifError(er, 'created git repo without errors')
178 npm.config.set('sign-git-commit', false)
179 npm.config.set('sign-git-tag', false)
180 npm.commands.version(['from-git'], checkVersion)
212 // git must be called after npm.load because it uses config
213 var git = require('../../lib/utils/git.js')
217 commands: [git.chainableExec(['tag', tag, '-am', tag], opts)]