project-creator --> git: 'remote-https' is not a git command

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
ARHasani
Level 1
Level 1
5 sign-ins First reply posted First question asked

Hello everyone

In ModusToolbox 2.4, when I try to create a project within the Eclipse IDE, I face such an error: 

                 git: 'remote-https' is not a git command.

This happens regardless of the board type or specific application for a board. The log file is as below:

==============================================================================
= Cloning 'mtb-example-btsdk-ble-hello-sensor' =
==============================================================================
Cloning https://github.com/Infineon/mtb-example-btsdk-ble-hello-sensor into C:/ModusToolbox_Projects/CYBT_343026_EVAL directory...
env git clone --progress --origin cypress https://github.com/Infineon/mtb-example-btsdk-ble-hello-sensor LE_Hello_Sensor
Cloning into 'LE_Hello_Sensor'...
git: 'remote-https' is not a git command. See 'git --help'.

The most similar command is
remote-http
Project "mtb-example-btsdk-ble-hello-sensor" failed to create.

"git clone" failed.

0 Likes
4 Replies
Charles_Lai
Moderator
Moderator
Moderator
500 replies posted 250 solutions authored 250 sign-ins

Hi,

Did you use offline mode or online mode to create the project?

Is this a fresh start or you had modified the project makefile?

Best regards

0 Likes

Hi Charles

I just opened the project creator tool from inside the Eclipse IDE, and tried to create a new project. During this process I had an active Internet connection and I was in online mode.

It was a fresh start, and I do not have any makefile in the project's directory, since all my trials of creating a project has failed, and the project's directory has not been populated at all by a makefile, or any other file.

Thank you

0 Likes
Charles_Lai
Moderator
Moderator
Moderator
500 replies posted 250 solutions authored 250 sign-ins

The installation of your ModusToolbox could be corrupted.

Please check your installation, under $(YOUR_MTB_TOOLS_PATHS)\modus-shell\usr\libexec\git-core, is there a git-remote-https.exe?

You can uninstall and re-install your ModusToolbox, to see if it helps. Make sure you grant file creation permission to the installer this time. See:
https://stackoverflow.com/questions/51366101/git-remote-https-is-not-a-git-command

0 Likes

Thank you Charles for the reply. After uninstalling and reinstalling the software I could locate "git-remote-https.exe" in the stated directory, and I also managed to create a project. However, the second time I tried to create another project, again that error occured, and when I again looked into that directory, the "git-remote-https.exe" was no longer there. Somehow, it is deleted from the software's directory!

Here is the log of the project creator:

Checking if remote manifest is accessible...
Getting manifests from remote server...

Processing super-manifest https://github.com/cypresssemiconductorco/mtb-super-manifest/raw/v2.X/mtb-super-manifest-fv2.xml...
Successfully acquired the information.

Summary:

BSP: CYBT-343026-EVAL
Template Application(s): HAL GPIO
Application(s) Root Path: C:/Users/alire/mtw

Press "Create" to create the selected application(s).
Collecting application data...


Info: The following entered on the command line will create the exact same project as that created with the GUI tool:
C:/Users/alire/ModusToolbox/tools_2.4/project-creator/project-creator-cli.exe --board-id CYBT-343026-EVAL --board-uri https://github.com/cypresssemiconductorco/TARGET_CYBT-343026-EVAL --board-commit latest-v3.X --app-id mtb-example-btsdk-hal-gpio --app-uri https://github.com/Infineon/mtb-example-btsdk-hal-gpio --app-commit latest-v3.X --cypress-tools C:/Users/alire/ModusToolbox/tools_2.4 --target-dir C:/Users/alire/mtw --user-app-name HAL_GPIO --output-for-machine --use-modus-shell


==============================================================================
= Cloning 'mtb-example-btsdk-hal-gpio' =
==============================================================================
Cloning https://github.com/Infineon/mtb-example-btsdk-hal-gpio into C:/Users/alire/mtw directory...
env git clone --progress --origin cypress https://github.com/Infineon/mtb-example-btsdk-hal-gpio HAL_GPIO
Cloning into 'HAL_GPIO'...
remote: Enumerating objects: 55, done.
remote: Counting objects: 100% (55/55), done.
remote: Compressing objects: 100% (26/26), done.
remote: Total 55 (delta 22), reused 48 (delta 18), pack-reused 0
Receiving objects: 100% (55/55), 30.06 KiB | 1.50 MiB/s, done.
Resolving deltas: 100% (22/22), done.

Checking out latest-v3.X...
env git checkout --progress latest-v3.X
Note: switching to 'latest-v3.X'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

git switch -c <new-branch-name>

Or undo this operation with:

git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at ff48d3e Upload mtb-example-btsdk-hal-gpio 3.2.0.20467

==============================================================================
= Creating "TARGET_CYBT-343026-EVAL.mtb" file(s) =
==============================================================================
C:/Users/alire/mtw/HAL_GPIO/deps/TARGET_CYBT-343026-EVAL.mtb was added
C:/Users/alire/mtw/HAL_GPIO/deps/TARGET_CYW920819EVB-02.mtb was removed

==============================================================================
= Updating Makefile for "HAL_GPIO" =
==============================================================================

==============================================================================
= Applying the Latest Version Locking for "HAL_GPIO" =
==============================================================================
C:/Users/alire/mtw/HAL_GPIO/deps/TARGET_CYBT-343026-EVAL.mtb was updated

==============================================================================
= Getting Dependencies for "HAL_GPIO" =
==============================================================================
C:/Users/alire/ModusToolbox/tools_2.4/modus-shell/bin/make.exe getlibs CY_TOOLS_PATHS=C:/Users/alire/ModusToolbox/tools_2.4

==============================================================================
= Importing libraries =
==============================================================================
Git is git version 2.33.0, found at /usr/bin/git

Resolving dependencies...
Checking if remote manifest is accessible...
Getting manifests from remote server...
Processing super-manifest https://github.com/cypresssemiconductorco/mtb-super-manifest/raw/v2.X/mtb-super-manifest-fv2.xml...
Successfully acquired the information.
C:/Users/alire/mtw/HAL_GPIO/libs/20706A2.mtb was added
C:/Users/alire/mtw/HAL_GPIO/libs/btsdk-common.mtb was added
C:/Users/alire/mtw/HAL_GPIO/libs/btsdk-include.mtb was added
C:/Users/alire/mtw/HAL_GPIO/libs/btsdk-tools.mtb was added
C:/Users/alire/mtw/HAL_GPIO/libs/btsdk-utils.mtb was added
C:/Users/alire/mtw/HAL_GPIO/libs/core-make.mtb was added
Dependencies resolved.

Searching application directory (.mtb)...
Found 7 .mtb file(s)
Processing file "C:/Users/alire/mtw/HAL_GPIO/deps/TARGET_CYBT-343026-EVAL.mtb"
git: 'remote-https' is not a git command. See 'git --help'.

The most similar command is
remote-http
git: 'remote-https' is not a git command. See 'git --help'.

The most similar command is
remote-http
Processing file "C:/Users/alire/mtw/HAL_GPIO/libs/20706A2.mtb"
git: 'remote-https' is not a git command. See 'git --help'.

The most similar command is
remote-http
git: 'remote-https' is not a git command. See 'git --help'.

The most similar command is
remote-http
Processing file "C:/Users/alire/mtw/HAL_GPIO/libs/btsdk-common.mtb"
git: 'remote-https' is not a git command. See 'git --help'.

The most similar command is
remote-http
git: 'remote-https' is not a git command. See 'git --help'.

The most similar command is
remote-http
Processing file "C:/Users/alire/mtw/HAL_GPIO/libs/btsdk-include.mtb"
git: 'remote-https' is not a git command. See 'git --help'.

The most similar command is
remote-http
git: 'remote-https' is not a git command. See 'git --help'.

The most similar command is
remote-http
Processing file "C:/Users/alire/mtw/HAL_GPIO/libs/btsdk-tools.mtb"
git: 'remote-https' is not a git command. See 'git --help'.

The most similar command is
remote-http
git: 'remote-https' is not a git command. See 'git --help'.

The most similar command is
remote-http
Processing file "C:/Users/alire/mtw/HAL_GPIO/libs/btsdk-utils.mtb"
git: 'remote-https' is not a git command. See 'git --help'.

The most similar command is
remote-http
git: 'remote-https' is not a git command. See 'git --help'.

The most similar command is
remote-http
Processing file "C:/Users/alire/mtw/HAL_GPIO/libs/core-make.mtb"
git: 'remote-https' is not a git command. See 'git --help'.

The most similar command is
remote-http
git: 'remote-https' is not a git command. See 'git --help'.

The most similar command is
remote-http
Libraries processed.
Created file "C:/Users/alire/mtw/HAL_GPIO/libs/mtb.mk".


==============================================================================
= Import complete =
==============================================================================

Project "HAL_GPIO" created successfully.
==============================================================================
= Export "HAL_GPIO" application to Eclipse IDE for ModusToolbox™ =
==============================================================================
C:/Users/alire/ModusToolbox/tools_2.4/modus-shell/bin/make.exe eclipse CY_IDE_PRJNAME=HAL_GPIO CY_MAKE_IDE=eclipse CY_MAKE_IDE_VERSION=2.4 CY_TOOLS_PATHS=C:/Users/alire/ModusToolbox/tools_2.4
CYBT-343026-EVAL.mk: ../mtb_shared/wiced_btsdk/dev-kit/bsp/TARGET_CYBT-343026-EVAL/release-v3.2.0/CYBT-343026-EVAL.mk

generated C:/Users/alire/mtw/HAL_GPIO/build/CYBT-343026-EVAL/Debug/HAL_GPIO.ld
Prebuild operations complete
Commencing build operations...

CYBT-343026-EVAL.mk: ../mtb_shared/wiced_btsdk/dev-kit/bsp/TARGET_CYBT-343026-EVAL/release-v3.2.0/CYBT-343026-EVAL.mk

Initializing build: HAL_GPIO Debug CYBT-343026-EVAL GCC_ARM

Auto-discovery in progress...
-> Found 10 .c file(s)
-> Found 0 .S file(s)
-> Found 0 .s file(s)
-> Found 0 .cpp file(s)
-> Found 0 .o file(s)
-> Found 18 .a file(s)
-> Found 168 .h file(s)
-> Found 0 .hpp file(s)
-> Found 0 resource file(s)
Applying filters...
Auto-discovery complete

Constructing build rules...
Build rules construction complete

==============================================================================
= Generating IDE files =
==============================================================================

Generated Eclipse launch config files: "HAL_GPIO Attach_JLink.launch" "HAL_GPIO Attach_KitProg3_MiniProg4.launch" "HAL_GPIO Program.launch"

The project "HAL_GPIO" was successfully exported to Eclipse IDE for ModusToolbox™.

Successfully created and exported "HAL_GPIO" application.

0 Likes