{"action":"created","issue":{"url":"https://api.github.com/repos/rtfd/readthedocs.org/issues/2186","repository_url":"https://api.github.com/repos/rtfd/readthedocs.org","labels_url":"https://api.github.com/repos/rtfd/readthedocs.org/issues/2186/labels{/name}","comments_url":"https://api.github.com/repos/rtfd/readthedocs.org/issues/2186/comments","events_url":"https://api.github.com/repos/rtfd/readthedocs.org/issues/2186/events","html_url":"https://github.com/rtfd/readthedocs.org/issues/2186","id":152737432,"number":2186,"title":"My RTD Server Always Builds The Old Commit","user":{"login":"myhlivecom","id":12458706,"avatar_url":"https://avatars.githubusercontent.com/u/12458706?v=3","gravatar_id":"","url":"https://api.github.com/users/myhlivecom","html_url":"https://github.com/myhlivecom","followers_url":"https://api.github.com/users/myhlivecom/followers","following_url":"https://api.github.com/users/myhlivecom/following{/other_user}","gists_url":"https://api.github.com/users/myhlivecom/gists{/gist_id}","starred_url":"https://api.github.com/users/myhlivecom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/myhlivecom/subscriptions","organizations_url":"https://api.github.com/users/myhlivecom/orgs","repos_url":"https://api.github.com/users/myhlivecom/repos","events_url":"https://api.github.com/users/myhlivecom/events{/privacy}","received_events_url":"https://api.github.com/users/myhlivecom/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-03T09:52:19Z","updated_at":"2016-05-03T15:05:36Z","closed_at":null,"body":"I installed RTD server on CentOS 7 on my computer (hostname dsrl2) by this tutorial:\r\nhttp://docs.readthedocs.io/en/latest/install.html\r\n\r\nThen, I manually imported a sphinx git repo 'st' on a path on my dsrl2 to my RTD server. The import URL I gave is: ssh://dsrl2/home2/grad97/myh/git/st/.git\r\nThe repo has only one branch 'master.'\r\nMy RTD server built the document successfully.\r\nHowever, my problem is: after I made some file changes and commits to the repo. I tried to use curl to rebuild the document of the latest commit by command:\r\ncurl http://the-ip-of-dsrl2:8000/build/st -d \"\"\r\nThe debug message of my RTD server showed that it did build the document. However, it built the document of the old commit, not the latest commit!\r\nDoes anyone know what the wrong is?\r\n\r\nI also notice a strange time problem. The time showing in the RTD server console debug message are 1 hour earlier than the time showed from Linux 'date' command.\r\nFor example, if I run the curl command to build the document at a time 17:02 (05:02 pm) showed from date command, there is a debug message showed in the RTD server console\r\n[03/May/2016 04:02:55]\"GET /build/st HTTP/1.1\" 200 31\r\nIs this time problem related to the previous commit problem?"},"comment":{"url":"https://api.github.com/repos/rtfd/readthedocs.org/issues/comments/216557950","html_url":"https://github.com/rtfd/readthedocs.org/issues/2186#issuecomment-216557950","issue_url":"https://api.github.com/repos/rtfd/readthedocs.org/issues/2186","id":216557950,"user":{"login":"myhlivecom","id":12458706,"avatar_url":"https://avatars.githubusercontent.com/u/12458706?v=3","gravatar_id":"","url":"https://api.github.com/users/myhlivecom","html_url":"https://github.com/myhlivecom","followers_url":"https://api.github.com/users/myhlivecom/followers","following_url":"https://api.github.com/users/myhlivecom/following{/other_user}","gists_url":"https://api.github.com/users/myhlivecom/gists{/gist_id}","starred_url":"https://api.github.com/users/myhlivecom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/myhlivecom/subscriptions","organizations_url":"https://api.github.com/users/myhlivecom/orgs","repos_url":"https://api.github.com/users/myhlivecom/repos","events_url":"https://api.github.com/users/myhlivecom/events{/privacy}","received_events_url":"https://api.github.com/users/myhlivecom/received_events","type":"User","site_admin":false},"created_at":"2016-05-03T15:05:36Z","updated_at":"2016-05-03T15:05:36Z","body":"I am continuing finding the commit problem. I find the webhook:\r\ncurl http://the-ip-of-dsrl2:8000/build/st -d \"\"\r\nwill invoke a python function 'generic_build' to rebuild the documents of the imported git repo.\r\n(The imported git repo is located in e.g.:\r\n/home2/grad97/myh/git/rtd/checkout/readthedocs.org/user_builds/st/checkouts/latest\r\n)\r\nI looked into generic_build source code. It seems that generic_build doesn't pull or fetch commits from the original repo to the imported git repo before rebuild documents.\r\nSo, is this a limitation of the RTD server that it can't rebuild the latest commit in the original repo if the repo is imported MANUALLY from places EXCEPT GitHub, Bitbucket, ...?"}}