New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using older GIT version for PlatformIO doesn't check out branches directly #885

zxpower opened this Issue Jan 24, 2017 · 1 comment


None yet
2 participants

zxpower commented Jan 24, 2017


Operating system: Ubuntu Linux 12.04 LTS

PlatformIO Version (platformio --version): 3.2.1

Description of problem

Using PlatformIO with older version of GIT (I have and trying to install platform from specific branch from Github repository using fails.

Steps to Reproduce

  1. platformio platform install

Actual Results

PlatformManager: Installing platform-espressif8266
git version
Cloning into '/home/user/.platformio/platforms/installing-Jl9bjK-package'...
fatal: not valid: is this a git repository?
Error: Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/platformio/", line 106, in main
    cli(None, None, None)
  File "/usr/local/lib/python2.7/dist-packages/click/", line 700, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/click/", line 680, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python2.7/dist-packages/click/", line 1027, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python2.7/dist-packages/click/", line 1027, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python2.7/dist-packages/click/", line 873, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python2.7/dist-packages/click/", line 508, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/platformio/commands/", line 85, in platform_install
  File "/usr/local/lib/python2.7/dist-packages/platformio/managers/", line 54, in install
    platform_dir = BasePkgManager.install(self, name, requirements)
  File "/usr/local/lib/python2.7/dist-packages/platformio/managers/", line 468, in install
    pkg_dir = self._install_from_url(name, url, requirements)
  File "/usr/local/lib/python2.7/dist-packages/platformio/managers/", line 201, in _install_from_url
    assert vcs.export()
  File "/usr/local/lib/python2.7/dist-packages/platformio/", line 131, in export
    assert self.run_cmd(args)
  File "/usr/local/lib/python2.7/dist-packages/platformio/", line 88, in run_cmd
    return check_call(args, **kwargs) == 0
  File "/usr/lib/python2.7/", line 511, in check_call
    raise CalledProcessError(retcode, cmd)
CalledProcessError: Command '['git', 'clone', '--recursive', '--depth', '1', '', '/home/user/.platformio/platforms/installing-Jl9bjK-package']' returned non-zero exit status 128


An unexpected error occurred. Further steps:

* Verify that you have the latest version of PlatformIO using
  `pip install -U platformio` command

* Try to find answer in FAQ Troubleshooting section

* Report this problem to the developers


Expected Results

git version 2.5.4 (Apple Git-61)
Cloning into '/Users/user/.platformio/platforms/installing-nzARYu-package'...
remote: Counting objects: 92, done.
remote: Compressing objects: 100% (59/59), done.
remote: Total 92 (delta 46), reused 54 (delta 24), pack-reused 0
Unpacking objects: 100% (92/92), done.
Checking connectivity... done.
espressif8266_rysta @ 1.2.1 has been successfully installed!
PackageManager: Installing toolchain-xtensa @ ~1.40802.0
toolchain-xtensa @ 1.40802.0 is already installed
PackageManager: Installing tool-esptool @ ~1.409.0
tool-esptool @ 1.409.0 is already installed
The platform '' has been successfully installed!
The rest of packages will be installed automatically depending on your build environment.

@ivankravets ivankravets added the bug label Jan 24, 2017

@ivankravets ivankravets added this to the 3.3.0 milestone Jan 24, 2017


This comment has been minimized.

Show comment
Hide comment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment