lv7777 / GithubCommiter

このリポジトリ進捗ダメ
https://github.com/lv7777/GithubCommiteratChrome
2 stars 0 forks source link

[filename_dispatch function branch]409 conflict #25

Open lv7777 opened 8 years ago

lv7777 commented 8 years ago

content_scripts.js:272 PUT https://api.github.com/repos/lv7777/translation/contents/www/google/co/jp/filenamefefe.html 409 (Conflict)

{ "message": "Sorry, a file exists where you’re trying to create a subdirectory. Choose a new path and try again.", "documentation_url": "https://developer.github.com/v3/repos/contents/" }

contentscript272はgetsha1(username, pass, repo, path, file).then(function ok(shaobj) { のsend()

path +"/"+fileに変えた時

すでにtranslation/www/google/co/jpというファイルが存在している(translation/www/google/co/はディレクトリ)

なのでjpディレクトリを作れなかったんだと思われる。

lv7777 commented 8 years ago

まあtry catchでまとめてポイでいいんじゃね(適当