Tag Archives: bitbucket.org

[hg:mercurial] การจัดการปัญหาที่ warning ของการใช้คำสั่ง hg push ไปที่ bitbuket.org

ตอนนี้มีปัญหาคือ เมื่อใช้คำสั่ง hg push ไปที่เว็บไซต์เช่น bitbucket.org จะมีคำเตือน (warning) ว่า “warning: bitbucket.org certificate with fingerprint 24:9c:45:8b:9c:aa:ba:55:4e:01:6d:58:ff:e4:28:7d:2a:14:ae:3b not verified (check hostfingerprints or web.cacerts config setting)” การแก้ปัญหาคือ ต้องเพิ่ม fingerprint ของ bitbucket.org “24:9c:45:8b:9c:aa:ba:55:4e:01:6d:58:ff:e4:28:7d:2a:14:ae:3b” ของ certificate ลงไปในไฟล์ ~/.hgrc ในส่วนของ [hostfingerprints] ตัวอย่าง เติม fingerprint ของ bitbucket.org “24:9c:45:8b:9c:aa:ba:55:4e:01:6d:58:ff:e4:28:7d:2a:14:ae:3b”  ในไฟล์ ~/.hgrc [hostfingerprints] bitbucket.org = 24:9c:45:8b:9c:aa:ba:55:4e:01:6d:58:ff:e4:28:7d:2a:14:ae:3b จะทำให้ไม่เตือน warning ในการรัน hg ข้อมูลที่มาจาก http://tadabborat.tumblr.com/post/9502320721/mercurial-warning-bitbucket-org-certificate-with

Category: Uncategorized