# Git Checkout Action fails

**URL:** https://www.finalbuilder.com/forums/t/git-checkout-action-fails/6830
**Category:** Discussion
**Created:** [August 20, 2020, 6:59am UTC](https://www.finalbuilder.com/forums/t/git-checkout-action-fails/6830 "2020-08-20T06:59:59Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![sa\_thomaslohrum](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/ecd19e/32.png) [@sa\_thomaslohrum](https://www.finalbuilder.com/forums/u/sa_thomaslohrum)
#### Post date: [August 20, 2020, 6:59am UTC](https://www.finalbuilder.com/forums/t/git-checkout-action-fails/6830/1 "2020-08-20T06:59:59Z")

</div>

Hi,

we have installed build 2897 yesterday. It seems like the git checkout action is broken.

```
Git Checkout build
	[Error] The Local Repository directory specified (C:\ContinuaCI\CI_WS\Ws\28992\Source\Repo\build) does not exist!
	Working Directory: C:\ContinuaCI\CI_WS\Ws\28992\Source\Repo\build
	Command Line: git --force master
	[Error] Error executing program : Failed to execute program. Error : Der Verzeichnisname ist ungültig

```

The Command Line “git --force master” is wrong.

With the previous version used the output is different:

```
Git Checkout build
	Working Directory: C:\ContinuaCI\CI_WS\Ws\28892\Source\Repo\build
	Command Line: git checkout master -f
	Already on 'master'
	Your branch is up to date with 'origin/master'.
	Success

```

We have also updated to Git 2.28. Before that we had Git 2.27 installed.

---

<div class="post-metadata">

### Author: ![sa\_thomaslohrum](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/ecd19e/32.png) [@sa\_thomaslohrum](https://www.finalbuilder.com/forums/u/sa_thomaslohrum)
#### Post date: [August 20, 2020, 7:10am UTC](https://www.finalbuilder.com/forums/t/git-checkout-action-fails/6830/2 "2020-08-20T07:10:46Z")

</div>

I have reinstalled FiB Build 2863. Our build runs again with no problems so far.

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [August 20, 2020, 7:11am UTC](https://www.finalbuilder.com/forums/t/git-checkout-action-fails/6830/3 "2020-08-20T07:11:49Z")

</div>

Hi Thomas

The way the command line is generated is a bit odd (we will fix that)… but the error is actually that the local repository folder does not exist, at least according to the scripting.filesystemobject.

I will upload a build with some changes shortly.

---

<div class="post-metadata">

### Author: ![sa\_thomaslohrum](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/ecd19e/32.png) [@sa\_thomaslohrum](https://www.finalbuilder.com/forums/u/sa_thomaslohrum)
#### Post date: [August 20, 2020, 7:24am UTC](https://www.finalbuilder.com/forums/t/git-checkout-action-fails/6830/4 "2020-08-20T07:24:12Z")

</div>

Hi Vincent,

i checked the log.

Build 2897

`Command Line: git clone "https://.../_git/RepoName"`

This is wrong. Obviously the git clone command ignores the dest path parameter.

Build 2863

`Command Line: git clone "https://..../_git/RepoName" "build"`

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [August 20, 2020, 7:25am UTC](https://www.finalbuilder.com/forums/t/git-checkout-action-fails/6830/5 "2020-08-20T07:25:41Z")

</div>

looking into it

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [August 20, 2020, 7:36am UTC](https://www.finalbuilder.com/forums/t/git-checkout-action-fails/6830/6 "2020-08-20T07:36:18Z")

</div>

I suspect this is a backwards compatibility issue with the clone action. After installing the newer build, open the clone action in the FB IDE and take a look at the “Name of new directory to clone into”.

[https://downloads.finalbuilder.com/downloads/finalbuilder/800/FB800\_2910.exe](https://downloads.finalbuilder.com/downloads/finalbuilder/800/FB800_2910.exe)

We did a lot of refactoring of the git actions for 8.0.0.2894 and we did try hard to maintain backwards compatibility, but I guess this is one we missed. The actions were badly in need of an overhaul as they had not been touched in several years, and the dev who wrote those actions got lots of things wrong!

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [August 20, 2020, 7:42am UTC](https://www.finalbuilder.com/forums/t/git-checkout-action-fails/6830/7 "2020-08-20T07:42:44Z")

</div>

Hold off installing that build… I think I have found a way to maintain the backwards compatibility. Uploading another build now.

---

<div class="post-metadata">

### Author: ![sa\_thomaslohrum](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/ecd19e/32.png) [@sa\_thomaslohrum](https://www.finalbuilder.com/forums/u/sa_thomaslohrum)
#### Post date: [August 20, 2020, 7:50am UTC](https://www.finalbuilder.com/forums/t/git-checkout-action-fails/6830/8 "2020-08-20T07:50:41Z")

</div>

I have not been able to install the build on my local pc, as the installer rejects to install. My license seems to be out-dated. I checked my Finalbuilder-Installation, but in the “About” dialog, there is no information regarding my license.

Our build-server has its own license. However, it is still running a build, so i can not test there either.

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [August 20, 2020, 7:56am UTC](https://www.finalbuilder.com/forums/t/git-checkout-action-fails/6830/9 "2020-08-20T07:56:44Z")

</div>

If your serial ends with 505 then SA lapsed on 16 Aug 2020 - the other license (and Continua CI) is good to 28 Feb 2021. The licenses are under Simon’s account so you might want to hassle him about renewing your’s 😉

This build should handle the backwards compatibility a bit better.

[https://downloads.finalbuilder.com/downloads/finalbuilder/800/FB800\_2911.exe](https://downloads.finalbuilder.com/downloads/finalbuilder/800/FB800_2911.exe)

---

<div class="post-metadata">

### Author: ![sa\_thomaslohrum](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/ecd19e/32.png) [@sa\_thomaslohrum](https://www.finalbuilder.com/forums/u/sa_thomaslohrum)
#### Post date: [August 20, 2020, 8:18am UTC](https://www.finalbuilder.com/forums/t/git-checkout-action-fails/6830/10 "2020-08-20T08:18:00Z")

</div>

Indeed, the serial of my licence ends with 505. I’ll check with our IT to get an update.  
As for the Buildserver i need to check for a timeframe, to be able to install and test the update.  
Thanks. I’ll keep you updated.

---

<div class="post-metadata">

### Author: ![sa\_thomaslohrum](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/ecd19e/32.png) [@sa\_thomaslohrum](https://www.finalbuilder.com/forums/u/sa_thomaslohrum)
#### Post date: [August 20, 2020, 10:31am UTC](https://www.finalbuilder.com/forums/t/git-checkout-action-fails/6830/11 "2020-08-20T10:31:17Z")

</div>

Hi Vincent,

i’ve just installed build 2911. It’s running smooth 🙂 Thanks!

Please note, that there is a minor change (in the log file).

Build 2863  
`Command Line: git clone "https://..../_git/RepoName" "build"`

Build 2911

`Command Line: git clone "https://..../_git/RepoName" build`

The target folder is no longer quoted. I did not test with a directory containing spaces. Simply using “build” is no problem, obviously.

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [August 20, 2020, 12:32pm UTC](https://www.finalbuilder.com/forums/t/git-checkout-action-fails/6830/12 "2020-08-20T12:32:24Z")

</div>

Quotes are only added if the path has spaces, so that should be fine.
