Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"ramda": "^0.27.2",
"read-pkg": "^5.2.0",
"semantic-release-plugin-decorators": "^4.0.0",
"tempy": "1.0.1"
"tempy": "^3.2.0"
},
"devDependencies": {
"husky": "^8.0.1",
Expand Down
8 changes: 4 additions & 4 deletions src/git-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import execa from 'execa';
import { pipeP, split } from 'ramda';
import fse from 'fs-extra';
import path from 'path';
import tempy from 'tempy';
import { temporaryDirectory } from 'tempy';
import fileUrl from 'file-url';
import gitLogParser from 'git-log-parser';
import pEachSeries from 'p-each-series';
Expand Down Expand Up @@ -70,7 +70,7 @@ const gitCommitsWithFiles = async commits => {
* @return {{cwd: string, repositoryUrl: string}} The path of the repository
*/
const initGit = async withRemote => {
const cwd = tempy.directory();
const cwd = temporaryDirectory();
const args = withRemote
? ['--bare', '--initial-branch=master']
: ['--initial-branch=master'];
Expand Down Expand Up @@ -150,7 +150,7 @@ const gitGetCommits = async from => {
* @param {String} [branch='master'] the branch to initialize.
*/
const initBareRepo = async (repositoryUrl, branch = 'master') => {
const cwd = tempy.directory();
const cwd = temporaryDirectory();
await execa('git', ['clone', '--no-hardlinks', repositoryUrl, cwd], { cwd });
await gitCheckout(branch, true, { cwd });
gitCommits(['Initial commit'], { cwd });
Expand Down Expand Up @@ -191,7 +191,7 @@ const initGitRepo = async (withRemote, branch = 'master') => {
* @return {String} The path of the cloned repository.
*/
const gitShallowClone = (repositoryUrl, branch = 'master', depth = 1) => {
const cwd = tempy.directory();
const cwd = temporaryDirectory();

execa(
'git',
Expand Down
Loading