Problems cloning submodule

mark's Avatar

mark

05 May, 2015 02:30 AM

I have a .NET project with one git submodule. I setup an "install" script to execute 'git submodule update --init' and I get an error that I don't quite understand. Here's the log from the last build:

Build started
git clone -q git://github.com/gettyimages/gettyimages-api_dotnet.git C:\projects\gettyimages-api-dotnet
git fetch -q origin +refs/pull/10/merge:
git checkout -qf FETCH_HEAD
Running Install scripts
git submodule update --init
Submodule 'GettyImages.Api.OnlineTests/Scenarios' (https://github.com/gettyimages/gettyimages-api_bdd.git) registered for path 'GettyImages.Api.OnlineTests/Scenarios'
git : Cloning into 'GettyImages.Api.OnlineTests/Scenarios'...
At line:1 char:1
+ git submodule update --init
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (Cloning into 'G...s/Scenarios'...:String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError

Submodule path 'GettyImages.Api.OnlineTests/Scenarios': checked out '8dbb9ee320ded5637c932586835b624601bb8850'
Command executed with exception: Cloning into 'GettyImages.Api.OnlineTests/Scenarios'...

Build is here

  1. Support Staff 1 Posted by Feodor Fitsner on 05 May, 2015 02:39 AM

    Feodor Fitsner's Avatar

    use git submodule -q update --init or switch command mode from PS to CMD.

  2. mark closed this discussion on 05 May, 2015 02:53 AM.

  3. mark re-opened this discussion on 05 May, 2015 02:53 AM

  4. 2 Posted by mark on 05 May, 2015 02:53 AM

    mark's Avatar

    Switching to cmd worked. Thanks!

  5. 3 Posted by james.baxley on 13 Oct, 2015 03:27 PM

    james.baxley's Avatar

    Mark, I'm running into a similar issue. I have a submodule that is trying to clone down but the install hangs and the build timer runs out. It works great on my machine so I'm not sure what is going on.

    Build started
    $fileContent = "-----BEGIN RSA PRIVATE KEY-----`n"
    $fileContent += $env:priv_key.Replace(' ', "`n")
    $fileContent += "`n-----END RSA PRIVATE KEY-----`n"
    Set-Content c:\users\appveyor\.ssh\id_rsa $fileContent
    git clone -q --depth=1 --branch=feature-auto-deploys https://github.com/NewSpring/Rock.git C:\projects\rock
    git checkout -qf 11817e66a21cebecd583a2f4678e16a0186c7346
    Running Install scripts
    git submodule update --init --recursive
    Submodule '.remote/bookshelf' (git@github.com:NewSpring/rock-bookshelf.git) registered for path '.remote/bookshelf'
    Cloning into '.remote/bookshelf'...
    
  6. Support Staff 4 Posted by Feodor Fitsner on 13 Oct, 2015 05:28 PM

    Feodor Fitsner's Avatar

    Try output the contents of id_rsa file right after Set-Content to see what you got there.

  7. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:00 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

 

16 Jul, 2019 04:51 AM
15 Jul, 2019 06:33 PM
15 Jul, 2019 06:09 PM
15 Jul, 2019 05:53 PM
15 Jul, 2019 05:46 PM
15 Jul, 2019 05:21 PM