INNER CODE UNIT · TypeScript
pullFromRemote
EndBug/add-and-commit · src/main.ts:375
async function pullFromRemote(
pullOption: true | string,
options: {
restage: boolean;
ignoreErrors: 'all' | 'pathspec' | 'none';
},
) {
safeInfo('> Pulling from remote...');
const args = pullOption === true ? '' : pullOption;
core.debug(`Current git pull arguments: ${args}`);
await git
.fetch(undefined, log)
.pull(undefined, undefined, parseGitArgs(args), log);
safeInfo('> Checking for conflicts...');
const status = await git.status(undefined, log);
if (status.conflicted.length) {