<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>agajdosi</title>
    <link>https://blog.automatonomy.net/agajdosi/</link>
    <description></description>
    <pubDate>Wed, 05 Aug 2026 23:38:40 +0000</pubDate>
    <item>
      <title>Problem with Git in custom container on Github Actions</title>
      <link>https://blog.automatonomy.net/agajdosi/problem-with-git-in-custom-container-on-github-actions</link>
      <description>&lt;![CDATA[I had a workflow running successfully on default ubuntu-latest host on Github Actions which I wanted to also run on Debian and Fedora images. When I copied the workflow and started it on default Debian and Fedora images from Docker hub, I saw a strange error with Git:&#xA;&#xA;Run git submodule update --init bkproxor&#xA;fatal: not a git repository (or any parent up to mount point /)&#xA;Stopping at filesystem boundary (GITDISCOVERYACROSSFILESYSTEM not set).&#xA;&#xA;To my surprise what is a Git repository on Ubuntu is not a repo on Fedora and Debian. Setting environmental variable GITDISCOVERYACROSS_FILESYSTEM to 1 or True did not help...&#xA;&#xA;After some searching and few trials I have fixed the problem by adding the working directory as a safe directory to global git config:&#xA;&#xA;git config --global --add safe.directory $PWD&#xA;&#xA;Why is this a problem? I do not know! But if you ever face the not a git repository error on custom Docker image in Github actions while seeing that you have .git in current workdir, give the command above a try.]]&gt;</description>
      <content:encoded><![CDATA[<p>I had a workflow running successfully on default ubuntu-latest host on Github Actions which I wanted to also run on Debian and Fedora images. When I copied the workflow and started it on default Debian and Fedora images from Docker hub, I saw a strange error with Git:</p>

<pre><code>Run git submodule update --init bk_proxor
fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
</code></pre>

<p>To my surprise what is a Git repository on Ubuntu is not a repo on Fedora and Debian. Setting environmental variable GIT<em>DISCOVERY</em>ACROSS_FILESYSTEM to 1 or True did not help...</p>

<p>After some searching and few trials I have fixed the problem by adding the working directory as a safe directory to global git config:</p>

<pre><code>git config --global --add safe.directory $PWD
</code></pre>

<p>Why is this a problem? I do not know! But if you ever face the <code>not a git repository</code> error on custom Docker image in Github actions while seeing that you have .git in current workdir, give the command above a try.</p>
]]></content:encoded>
      <guid>https://blog.automatonomy.net/agajdosi/problem-with-git-in-custom-container-on-github-actions</guid>
      <pubDate>Thu, 30 Jul 2026 13:16:16 +0000</pubDate>
    </item>
  </channel>
</rss>