We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 028436d commit ab8cf31Copy full SHA for ab8cf31
src/proxy/processors/push-action/checkEmptyBranch.ts
@@ -3,10 +3,10 @@ import simpleGit from 'simple-git';
3
import { EMPTY_COMMIT_HASH } from '../constants';
4
5
const isEmptyBranch = async (action: Action) => {
6
- const git = simpleGit(`${action.proxyGitPath}/${action.repoName}`);
7
-
8
if (action.commitFrom === EMPTY_COMMIT_HASH) {
9
try {
+ const git = simpleGit(`${action.proxyGitPath}/${action.repoName}`);
+
10
const type = await git.raw(['cat-file', '-t', action.commitTo || '']);
11
return type.trim() === 'commit';
12
} catch (err) {
0 commit comments