wangyum commented on issue #213: Add Yuming Wang to committer list
URL: https://github.com/apache/spark-website/pull/213#issuecomment-526883073
 
 
   I setup 2-faced auth and use access token. But it always fails when pushing 
to remote: 
   `remote: Permission to apache/spark-website.git denied to wangyum.`
   
   ```
   yumwang@ubuntu-3513086:~/spark-website$ ./merge_pr.py
   git rev-parse --abbrev-ref HEAD
   Which pull request would you like to merge? (e.g. 34): 213
   
   === Pull Request #213 ===
   title        Add Yuming Wang to committer list
   source       wangyum/add-committer
   target       asf-site
   url  https://api.github.com/repos/apache/spark-website/pulls/213
   
   Proceed with merging pull request #213? (y/n): y
   git fetch apache-github pull/213/head:PR_TOOL_MERGE_PR_213
   From git://github.com/apache/spark-website
    * [new ref]             refs/pull/213/head -> PR_TOOL_MERGE_PR_213
   git fetch apache asf-site:PR_TOOL_MERGE_PR_213_ASF-SITE
   From https://github.com/apache/spark-website
    * [new branch]          asf-site   -> PR_TOOL_MERGE_PR_213_ASF-SITE
   git checkout PR_TOOL_MERGE_PR_213_ASF-SITE
   Switched to branch 'PR_TOOL_MERGE_PR_213_ASF-SITE'
   ['git', 'merge', 'PR_TOOL_MERGE_PR_213', '--squash']
   Automatic merge went well; stopped before committing as requested
   ['git', 'log', 'HEAD..PR_TOOL_MERGE_PR_213', '--pretty=format:%an <%ae>']
   Enter primary author in the format of "name <email>" [Yuming Wang 
<yumw...@ebay.com>]:
   ['git', 'log', 'HEAD..PR_TOOL_MERGE_PR_213', '--pretty=format:%h [%an] %s']
   ['git', 'commit', '--author="Yuming Wang <yumw...@ebay.com>"', '-m', u'Add 
Yuming Wang to committer list', '-m', u'', '-m', 'Author: Yuming Wang 
<yumw...@ebay.com>', '-m', u'Closes #213 from wangyum/add-committer.']
   
   Merge complete (local ref PR_TOOL_MERGE_PR_213_ASF-SITE). Push to apache? 
(y/n): y
   git push apache PR_TOOL_MERGE_PR_213_ASF-SITE:asf-site
   Username for 'https://github.com': wangyum
   Password for 'https://wang...@github.com':
   remote: Permission to apache/spark-website.git denied to wangyum.
   fatal: unable to access 'https://github.com/apache/spark-website.git/': The 
requested URL returned error: 403
   Restoring head pointer to asf-site
   git checkout asf-site
   Checking out files: 100% (3732/3732), done.
   Switched to branch 'asf-site'
   git branch
   Deleting local branch PR_TOOL_MERGE_PR_213
   git branch -D PR_TOOL_MERGE_PR_213
   Deleting local branch PR_TOOL_MERGE_PR_213_ASF-SITE
   git branch -D PR_TOOL_MERGE_PR_213_ASF-SITE
   Exception while pushing: Command '[u'git', u'push', u'apache', 
u'PR_TOOL_MERGE_PR_213_ASF-SITE:asf-site']' returned non-zero exit status 128
   Restoring head pointer to asf-site
   git checkout asf-site
   Already on 'asf-site'
   git branch
   Restoring head pointer to asf-site
   git checkout asf-site
   Already on 'asf-site'
   git branch
   ```
   
   ```
   yumwang@ubuntu-3513086:~/spark-website$ git remote -v
   apache       https://github.com/apache/spark-website.git (fetch)
   apache       https://github.com/apache/spark-website.git (push)
   apache-github        git://github.com/apache/spark-website (fetch)
   apache-github        git://github.com/apache/spark-website (push)
   origin       https://github.com/wangyum/spark-website.git (fetch)
   origin       https://github.com/wangyum/spark-website.git (push)
   upstream     https://github.com/apache/spark-website.git (fetch)
   upstream     https://github.com/apache/spark-website.git (push)
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org
For additional commands, e-mail: commits-h...@spark.apache.org

Reply via email to