fix: remove unnecessary branch parameter from push function

This commit is contained in:
Pierre Vanduynslager
2018-11-29 20:44:31 -05:00
parent b729183b4a
commit 968b9968a1
3 changed files with 5 additions and 6 deletions
+2 -2
View File
@@ -194,7 +194,7 @@ test('Push tag to remote repository', async t => {
const commits = await gitCommits(['Test commit'], {cwd});
await tag('tag_name', 'HEAD', {cwd});
await push(repositoryUrl, 'master', {cwd});
await push(repositoryUrl, {cwd});
t.is(await gitRemoteTagHead(repositoryUrl, 'tag_name', {cwd}), commits[0].hash);
});
@@ -208,7 +208,7 @@ test('Push tag to remote repository with remote branch ahead', async t => {
await gitPush('origin', 'master', {cwd: tmpRepo});
await tag('tag_name', 'HEAD', {cwd});
await push(repositoryUrl, 'master', {cwd});
await push(repositoryUrl, {cwd});
t.is(await gitRemoteTagHead(repositoryUrl, 'tag_name', {cwd}), commits[0].hash);
});