Skip to content

Commit 4c00fa1

Browse files
authored
fix: removed git error which can expose credentials (#1944)
1 parent 70d6aee commit 4c00fa1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cmd/commit.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ const commitAndPush = async (values: Record<string, any>, branch: string): Promi
5656
cd(env.ENV_DIR)
5757
await $`git push -u origin ${branch}`
5858
} catch (e) {
59-
d.warn(`The values repository is not yet reachable. Retrying.`)
60-
throw e
59+
d.warn(`The values repository is not yet reachable.`)
60+
throw new Error('Could not commit and push. Retrying...')
6161
}
6262
},
6363
{

0 commit comments

Comments
 (0)