1: if there was private key information, i configured separate push
url and pull urls, only if they weren't already configured

      if (child_process.spawnSync('git', ['config', '--get', 'remote.'
+ remotename + '.pushurl']).stdout.length === 0) {
        child_process.spawnSync('git', ['remote', 'set-url', '--push',
remotename, origurl])
        child_process.spawnSync('git', ['remote', 'set-url',
remotename, origurl.replace(privkey, addr)])
      }

2. i defined two shadow folders: one for git to sync with, and another
for the uploader to upload from

  const bsv_path = path.join(GIT_DIR, 'bsv', addr)
  const mirror_path = path.join(bsv_path, 'git.' +
crypto.createHash('sha256').update(urlparts.join(path.sep)).digest('hex'))
  const mirror_path_new = path.join(bsv_path, 'git.new')
  • [ot][spam][crazy] git-remot... Undiscussed Horrific Abuse, One Victim of Many
    • Re: [ot][spam][crazy] ... Undiscussed Horrific Abuse, One Victim of Many
      • Re: [ot][spam][cra... Undiscussed Horrific Abuse, One Victim of Many
        • Re: [ot][spam]... Undiscussed Horrific Abuse, One Victim of Many
          • Re: [ot][s... Undiscussed Horrific Abuse, One Victim of Many
            • Re: [... Undiscussed Horrific Abuse, One Victim of Many
              • R... Undiscussed Horrific Abuse, One Victim of Many
                • ... Undiscussed Horrific Abuse, One Victim of Many
                • ... Undiscussed Horrific Abuse, One Victim of Many
                • ... Undiscussed Horrific Abuse, One Victim of Many
                • ... Undiscussed Horrific Abuse, One Victim of Many

Reply via email to