# Git issue after moving from resin to balena

**URL:** <https://forums.balena.io/t/git-issue-after-moving-from-resin-to-balena/4261>\
**Category:** Product support\
**Created:** [October 30, 2018, 12:57pm UTC](https://forums.balena.io/t/git-issue-after-moving-from-resin-to-balena/4261 "2018-10-30T12:57:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sanderb](https://avatars.discourse-cdn.com/v4/letter/s/e495f1/32.png) [@sanderb](https://forums.balena.io/u/sanderb)\
**Post date:** [October 30, 2018, 12:57pm UTC](https://forums.balena.io/t/git-issue-after-moving-from-resin-to-balena/4261/1 "2018-10-30T12:57:06Z")

</div>

Hello,

I had a [resin.io](http://resin.io) project which worked fine. If I now try to push the project I have git issues. Any suggestions?

```
 [Info] Dashboard link: https://dashboard.balena-cloud.com/apps/1298225/devices
[Info] Building on arm02
[Info] Pulling previous images for caching purposes...
[Success] Successfully pulled cache images
[main] Step 1/9 : FROM resin/raspberrypi3-node:6-slim
[main] ---> 7fe2e8c1402b
[main] Step 2/9 : RUN apt-get update && apt-get install -yq git python2.7 bluetooth bluez libbluetooth-dev libudev-dev bluez-firmware && ln -s /usr/bin/python2.7 /usr/bin/python && apt-get install build-essential curl && apt-get install -y dnsmasq wireless-tools && apt-get clean && rm -rf /var/lib/apt/lists/*
[main] Using cache
[main] ---> c13518b3f978
[main] Step 3/9 : WORKDIR /usr/src/app
[main] Using cache
[main] ---> afdbeeab0c6b
[main] Step 4/9 : RUN curl https://api.github.com/repos/resin-io/resin-wifi-connect/releases/latest -s | grep -hoP 'browser_download_url": "\K.*armv7hf\.tar\.gz' | xargs -n1 curl -Ls | tar -xvz -C /usr/src/app/
[main] ---> Running in b307836edf2c
[main] curl: no URL specified!
[main] curl: try 'curl --help' or 'curl --manual' for more information
[main]     
[main]     
[main] gzip: stdin: unexpected end of file
[main]     
[main] tar: Child returned status 1
[main] tar: Error is not recoverable: exiting now
[main]     
[main] Removing intermediate container b307836edf2c
[main] The command '/bin/sh -c curl https://api.github.com/repos/resin-io/resin-wifi-connect/releases/latest -s | grep -hoP 'browser_download_url": "\K.*armv7hf\.tar\.gz' | xargs -n1 curl -Ls | tar -xvz -C /usr/src/app/' returned a non-zero code: 2
[Info] Uploading images
[Success] Successfully uploaded images
[Error] Some services failed to build:
[Error] Service: main
[Error] Error: The command '/bin/sh -c curl https://api.github.com/repos/resin-io/resin-wifi-connect/releases/latest -s | grep -hoP 'browser_download_url": "\K.*armv7hf\.tar\.gz' | xargs -n1 curl -Ls | tar -xvz -C /usr/src/app/' returned a non-zero code: 2
[Error] Not deploying release.

remote: error: hook declined to update refs/heads/master
To git.balena-cloud.com:bogerssande_r/tcy-fleet1.git
 ! [remote rejected] master -> master (hook declined)
error: failed to push some refs to `
```

---

<div class="post-metadata">

**Author:** ![imrehg](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/imrehg/32/36_2.png) [@imrehg](https://forums.balena.io/u/imrehg)\
**Post date:** [October 30, 2018, 1:00pm UTC](https://forums.balena.io/t/git-issue-after-moving-from-resin-to-balena/4261/4 "2018-10-30T13:00:14Z")

</div>

Hi @sanderb, the way you call `curl` does not follow redirects, can you try with `curl -L`, which should work?

---

<div class="post-metadata">

**Author:** ![pimterry](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/pimterry/32/140_2.png) [@pimterry](https://forums.balena.io/u/pimterry)\
**Post date:** [November 8, 2018, 2:43pm UTC](https://forums.balena.io/t/git-issue-after-moving-from-resin-to-balena/4261/5 "2018-11-08T14:43:34Z")

</div>

Hi @sanderb did this solve your issue? Let us know if you’re still having trouble.

---

<div class="post-metadata">

**Author:** ![sanderb](https://avatars.discourse-cdn.com/v4/letter/s/e495f1/32.png) [@sanderb](https://forums.balena.io/u/sanderb)\
**Post date:** [November 8, 2018, 3:42pm UTC](https://forums.balena.io/t/git-issue-after-moving-from-resin-to-balena/4261/6 "2018-11-08T15:42:08Z")

</div>

I’m sorry. Yes, this answer solved the issue. Thank you
