{"id":3420,"date":"2010-11-01T13:38:33","date_gmt":"2010-11-01T04:38:33","guid":{"rendered":"https:\/\/www.pistolfly.com\/weblog\/?p=3420"},"modified":"2023-12-04T13:02:35","modified_gmt":"2023-12-04T04:02:35","slug":"redmine-error-in-synchronizing-repositories-with-git","status":"publish","type":"post","link":"https:\/\/www.pistolfly.com\/weblog\/en\/2010\/11\/redmine-error-in-synchronizing-repositories-with-git.html","title":{"rendered":"Redmine error when synchronizing repositories with Git"},"content":{"rendered":"<p>I executed Repository.fetch_changesets using script\/runner by cron to synchronize repositories of Redline with Git and I got an error below.<\/p>\n<pre>git: not found<\/pre>\n<p>I modified redmine\/lib\/redmine\/scm\/adapters\/git_adapter.rb like below and it became OK.<\/p>\n<pre class=\"pretty print\">#GIT_BIN = \"git\"\r\nGIT_BIN = \"\/usr\/local\/bin\/git\"\r\n<\/pre>\n<div class=\"alert\">\u203b On r4795, r4797, you can set scm_git_command to the path to Git in configuration.yml, so you no longer need such modification like above.<\/div>\n<p>I also encountered an onother problem.<br \/>\nWhen the user who executes Redmine does not have permission for the Git repository directory (like xxx.git), Redmine shows \"The entry or revision was not found in the repository.\" error on repository page.<\/p>\n<p>Workaround is:<\/p>\n<pre class=\"command-line\">$ sudo chmod o+rx xxxx.git\r\n<\/pre>\n<ul>\n<li>If the repository is in a user's home directory (e.g. on gitosis or gitolite), you also have to do chmod o+x for the user's home directory.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>I executed Repository.fetch_changesets using script\/runner by cron to synchronize repositories of Redline with &hellip; <a href=\"https:\/\/www.pistolfly.com\/weblog\/en\/2010\/11\/redmine-error-in-synchronizing-repositories-with-git.html\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Redmine error when synchronizing repositories with Git<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_locale":"en_US","_original_post":"1128","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[42,31],"tags":[],"class_list":["post-3420","post","type-post","status-publish","format-standard","hentry","category-git","category-ruby-on-rails","en-US"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Redmine error when synchronizing repositories with Git - Pistolfly<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.pistolfly.com\/weblog\/en\/2010\/11\/redmine-error-in-synchronizing-repositories-with-git.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Redmine error when synchronizing repositories with Git - Pistolfly\" \/>\n<meta property=\"og:description\" content=\"I executed Repository.fetch_changesets using script\/runner by cron to synchronize repositories of Redline with &hellip; Continue reading Redmine error when synchronizing repositories with Git &rarr;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.pistolfly.com\/weblog\/en\/2010\/11\/redmine-error-in-synchronizing-repositories-with-git.html\" \/>\n<meta property=\"og:site_name\" content=\"Pistolfly\" \/>\n<meta property=\"article:published_time\" content=\"2010-11-01T04:38:33+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-04T04:02:35+00:00\" \/>\n<meta name=\"author\" content=\"Pistolfly\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Pistolfly\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.pistolfly.com\\\/weblog\\\/en\\\/2010\\\/11\\\/redmine-error-in-synchronizing-repositories-with-git.html#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.pistolfly.com\\\/weblog\\\/en\\\/2010\\\/11\\\/redmine-error-in-synchronizing-repositories-with-git.html\"},\"author\":{\"name\":\"Pistolfly\",\"@id\":\"https:\\\/\\\/www.pistolfly.com\\\/weblog\\\/#\\\/schema\\\/person\\\/e779e918730b507907b3a35b77a9a2ab\"},\"headline\":\"Redmine error when synchronizing repositories with Git\",\"datePublished\":\"2010-11-01T04:38:33+00:00\",\"dateModified\":\"2023-12-04T04:02:35+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.pistolfly.com\\\/weblog\\\/en\\\/2010\\\/11\\\/redmine-error-in-synchronizing-repositories-with-git.html\"},\"wordCount\":144,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.pistolfly.com\\\/weblog\\\/#\\\/schema\\\/person\\\/e779e918730b507907b3a35b77a9a2ab\"},\"articleSection\":[\"Git\",\"Ruby on Rails\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.pistolfly.com\\\/weblog\\\/en\\\/2010\\\/11\\\/redmine-error-in-synchronizing-repositories-with-git.html#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.pistolfly.com\\\/weblog\\\/en\\\/2010\\\/11\\\/redmine-error-in-synchronizing-repositories-with-git.html\",\"url\":\"https:\\\/\\\/www.pistolfly.com\\\/weblog\\\/en\\\/2010\\\/11\\\/redmine-error-in-synchronizing-repositories-with-git.html\",\"name\":\"Redmine error when synchronizing repositories with Git - Pistolfly\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.pistolfly.com\\\/weblog\\\/#website\"},\"datePublished\":\"2010-11-01T04:38:33+00:00\",\"dateModified\":\"2023-12-04T04:02:35+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.pistolfly.com\\\/weblog\\\/en\\\/2010\\\/11\\\/redmine-error-in-synchronizing-repositories-with-git.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.pistolfly.com\\\/weblog\\\/en\\\/2010\\\/11\\\/redmine-error-in-synchronizing-repositories-with-git.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.pistolfly.com\\\/weblog\\\/en\\\/2010\\\/11\\\/redmine-error-in-synchronizing-repositories-with-git.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u30db\u30fc\u30e0\",\"item\":\"https:\\\/\\\/www.pistolfly.com\\\/weblog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Redmine error when synchronizing repositories with Git\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.pistolfly.com\\\/weblog\\\/#website\",\"url\":\"https:\\\/\\\/www.pistolfly.com\\\/weblog\\\/\",\"name\":\"Pistolfly\",\"description\":\"Developer Blog\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.pistolfly.com\\\/weblog\\\/#\\\/schema\\\/person\\\/e779e918730b507907b3a35b77a9a2ab\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.pistolfly.com\\\/weblog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.pistolfly.com\\\/weblog\\\/#\\\/schema\\\/person\\\/e779e918730b507907b3a35b77a9a2ab\",\"name\":\"Pistolfly\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0b3ddb2859adabf28a2b97ae9fff98772ddffc46088d11cad2b9a2cef66115e7?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0b3ddb2859adabf28a2b97ae9fff98772ddffc46088d11cad2b9a2cef66115e7?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0b3ddb2859adabf28a2b97ae9fff98772ddffc46088d11cad2b9a2cef66115e7?s=96&d=mm&r=g\",\"caption\":\"Pistolfly\"},\"logo\":{\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0b3ddb2859adabf28a2b97ae9fff98772ddffc46088d11cad2b9a2cef66115e7?s=96&d=mm&r=g\"},\"description\":\"Software Engineer in Tokyo, Japan\",\"url\":\"https:\\\/\\\/www.pistolfly.com\\\/weblog\\\/author\\\/pistolfly\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Redmine error when synchronizing repositories with Git - Pistolfly","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.pistolfly.com\/weblog\/en\/2010\/11\/redmine-error-in-synchronizing-repositories-with-git.html","og_locale":"en_US","og_type":"article","og_title":"Redmine error when synchronizing repositories with Git - Pistolfly","og_description":"I executed Repository.fetch_changesets using script\/runner by cron to synchronize repositories of Redline with &hellip; Continue reading Redmine error when synchronizing repositories with Git &rarr;","og_url":"https:\/\/www.pistolfly.com\/weblog\/en\/2010\/11\/redmine-error-in-synchronizing-repositories-with-git.html","og_site_name":"Pistolfly","article_published_time":"2010-11-01T04:38:33+00:00","article_modified_time":"2023-12-04T04:02:35+00:00","author":"Pistolfly","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Pistolfly","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.pistolfly.com\/weblog\/en\/2010\/11\/redmine-error-in-synchronizing-repositories-with-git.html#article","isPartOf":{"@id":"https:\/\/www.pistolfly.com\/weblog\/en\/2010\/11\/redmine-error-in-synchronizing-repositories-with-git.html"},"author":{"name":"Pistolfly","@id":"https:\/\/www.pistolfly.com\/weblog\/#\/schema\/person\/e779e918730b507907b3a35b77a9a2ab"},"headline":"Redmine error when synchronizing repositories with Git","datePublished":"2010-11-01T04:38:33+00:00","dateModified":"2023-12-04T04:02:35+00:00","mainEntityOfPage":{"@id":"https:\/\/www.pistolfly.com\/weblog\/en\/2010\/11\/redmine-error-in-synchronizing-repositories-with-git.html"},"wordCount":144,"commentCount":0,"publisher":{"@id":"https:\/\/www.pistolfly.com\/weblog\/#\/schema\/person\/e779e918730b507907b3a35b77a9a2ab"},"articleSection":["Git","Ruby on Rails"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.pistolfly.com\/weblog\/en\/2010\/11\/redmine-error-in-synchronizing-repositories-with-git.html#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.pistolfly.com\/weblog\/en\/2010\/11\/redmine-error-in-synchronizing-repositories-with-git.html","url":"https:\/\/www.pistolfly.com\/weblog\/en\/2010\/11\/redmine-error-in-synchronizing-repositories-with-git.html","name":"Redmine error when synchronizing repositories with Git - Pistolfly","isPartOf":{"@id":"https:\/\/www.pistolfly.com\/weblog\/#website"},"datePublished":"2010-11-01T04:38:33+00:00","dateModified":"2023-12-04T04:02:35+00:00","breadcrumb":{"@id":"https:\/\/www.pistolfly.com\/weblog\/en\/2010\/11\/redmine-error-in-synchronizing-repositories-with-git.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.pistolfly.com\/weblog\/en\/2010\/11\/redmine-error-in-synchronizing-repositories-with-git.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.pistolfly.com\/weblog\/en\/2010\/11\/redmine-error-in-synchronizing-repositories-with-git.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u30db\u30fc\u30e0","item":"https:\/\/www.pistolfly.com\/weblog"},{"@type":"ListItem","position":2,"name":"Redmine error when synchronizing repositories with Git"}]},{"@type":"WebSite","@id":"https:\/\/www.pistolfly.com\/weblog\/#website","url":"https:\/\/www.pistolfly.com\/weblog\/","name":"Pistolfly","description":"Developer Blog","publisher":{"@id":"https:\/\/www.pistolfly.com\/weblog\/#\/schema\/person\/e779e918730b507907b3a35b77a9a2ab"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.pistolfly.com\/weblog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.pistolfly.com\/weblog\/#\/schema\/person\/e779e918730b507907b3a35b77a9a2ab","name":"Pistolfly","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0b3ddb2859adabf28a2b97ae9fff98772ddffc46088d11cad2b9a2cef66115e7?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0b3ddb2859adabf28a2b97ae9fff98772ddffc46088d11cad2b9a2cef66115e7?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0b3ddb2859adabf28a2b97ae9fff98772ddffc46088d11cad2b9a2cef66115e7?s=96&d=mm&r=g","caption":"Pistolfly"},"logo":{"@id":"https:\/\/secure.gravatar.com\/avatar\/0b3ddb2859adabf28a2b97ae9fff98772ddffc46088d11cad2b9a2cef66115e7?s=96&d=mm&r=g"},"description":"Software Engineer in Tokyo, Japan","url":"https:\/\/www.pistolfly.com\/weblog\/author\/pistolfly"}]}},"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/paorzz-Ta","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.pistolfly.com\/weblog\/wp-json\/wp\/v2\/posts\/3420","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.pistolfly.com\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.pistolfly.com\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.pistolfly.com\/weblog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.pistolfly.com\/weblog\/wp-json\/wp\/v2\/comments?post=3420"}],"version-history":[{"count":10,"href":"https:\/\/www.pistolfly.com\/weblog\/wp-json\/wp\/v2\/posts\/3420\/revisions"}],"predecessor-version":[{"id":5019,"href":"https:\/\/www.pistolfly.com\/weblog\/wp-json\/wp\/v2\/posts\/3420\/revisions\/5019"}],"wp:attachment":[{"href":"https:\/\/www.pistolfly.com\/weblog\/wp-json\/wp\/v2\/media?parent=3420"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.pistolfly.com\/weblog\/wp-json\/wp\/v2\/categories?post=3420"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.pistolfly.com\/weblog\/wp-json\/wp\/v2\/tags?post=3420"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}