diff --git a/src/git-remote-pear.js b/src/git-remote-pear.js index f029667..ce4bd9f 100755 --- a/src/git-remote-pear.js +++ b/src/git-remote-pear.js @@ -77,7 +77,12 @@ async function talkToGit (refs, drive) { let [src, dst] = chunk.split(':') src = src.split(' ')[1] const isForce = src.startsWith('+') - if (isForce) src = src.slice(1) + if (isForce) { + src = src.slice(1) + console.warn('force push is disabled') + process.stdout.write('\n\n') + process.exit(0) + } // TODO: write to something console.warn('src:', src, 'dst:', dst)