Giter Site home page Giter Site logo

Comments (3)

AndreMikulec avatar AndreMikulec commented on September 12, 2024

I am a little further now.

All you need to do is, (but MORE is required)

git submodule update --remote --merge

by Simba April 8 2019
Why is my Git Submodule HEAD detached from master?
https://stackoverflow.com/questions/18770545/why-is-my-git-submodule-head-detached-from-master

AnonymousUser@ANONYMOUST MINGW64 ~/GitHub/base (master)
$ git submodule update --remote --merge
Updating bb8cfa2..1164444
Fast-forward
 include/pcre2.h       | 978 ++++++++++++++++++++++++++++++++++++++++++++++++++
 lib/i386/libpcre2-8.a | Bin 0 -> 655950 bytes
 lib/x64/libpcre2-8.a  | Bin 0 -> 685000 bytes
 3 files changed, 978 insertions(+)
 create mode 100644 include/pcre2.h
 create mode 100644 lib/i386/libpcre2-8.a
 create mode 100644 lib/x64/libpcre2-8.a
Submodule path 'baselibs': merged in '1164444652aa1e2b3577a179c93e4aa2160eb2ad'
Updating 81acb73..3048252
Fast-forward
 PKGBUILD                     | 123 -------------------------------------------
 README.md                    |  12 +++++
 include/curl/curl.h          | 108 +++++++++++++++++++++++++++++++++----
 include/curl/curlver.h       |  14 ++---
 include/curl/easy.h          |  10 ++++
 include/curl/system.h        |  26 +++++++--
 include/curl/typecheck-gcc.h |  10 ++--
 include/curl/urlapi.h        | 122 ++++++++++++++++++++++++++++++++++++++++++
 lib/i386/libcrypto.a         | Bin 2934294 -> 4245420 bytes
 lib/i386/libcurl-dualssl.a   | Bin 786394 -> 0 bytes
 lib/i386/libcurl.a           | Bin 0 -> 838854 bytes
 lib/i386/libssh2.a           | Bin 230436 -> 236822 bytes
 lib/i386/libssl.a            | Bin 541296 -> 798866 bytes
 lib/x64/libcrypto.a          | Bin 3802396 -> 4498664 bytes
 lib/x64/libcurl-dualssl.a    | Bin 820806 -> 0 bytes
 lib/x64/libcurl.a            | Bin 0 -> 870914 bytes
 lib/x64/libssh2.a            | Bin 225416 -> 232218 bytes
 lib/x64/libssl.a             | Bin 597956 -> 817246 bytes
 rtools32.sh                  |  19 -------
 rtools64.sh                  |  19 -------
 20 files changed, 280 insertions(+), 183 deletions(-)
 delete mode 100644 PKGBUILD
 create mode 100644 README.md
 create mode 100644 include/curl/urlapi.h
 delete mode 100644 lib/i386/libcurl-dualssl.a
 create mode 100644 lib/i386/libcurl.a
 delete mode 100644 lib/x64/libcurl-dualssl.a
 create mode 100644 lib/x64/libcurl.a
 delete mode 100644 rtools32.sh
 delete mode 100644 rtools64.sh
Submodule path 'libcurl': merged in '30482527dcc60c06c3a795246dc7c6aefafdc888'

AnonymousUser@ANONYMOUST MINGW64 ~/GitHub/base (master)
$

AnonymousUser@ANONYMOUST MINGW64 ~/GitHub/base (master)
$ git submodule status
+1164444652aa1e2b3577a179c93e4aa2160eb2ad baselibs (v3.5.0-1-g1164444)
 1ddd5d1526bcba09766d5a0c317dc1c6faf81566 cairo (v1.16.0)
+30482527dcc60c06c3a795246dc7c6aefafdc888 libcurl (v7.64.1)
 b0526c5a186bfd92a63ecd0eee2734f4cb03d1b0 tcltk (bdr)

AnonymousUser@ANONYMOUST MINGW64 ~/GitHub/base (master)
$ git push --recurse-submodules=check
Everything up-to-date

AnonymousUser@ANONYMOUST MINGW64 ~/GitHub/base (master)
$ cd baselibs

AnonymousUser@ANONYMOUST MINGW64 ~/GitHub/base/baselibs ((1164444...))  *** NEW: CORRET ***
$ git status
HEAD detached from bb8cfa2              *** I AM *STILL* HERE ***
nothing to commit, working tree clean

So commit 1164444 is now recognized.
However, I am still on commit bb8cfa2

My baselibs\config looks like

C:\Users\AnonymousUser\GitHub\base\.git\modules\baselibs\config

[core]
	repositoryformatversion = 0
	filemode = false
	bare = false
	logallrefupdates = true
	symlinks = false
	ignorecase = true
	worktree = ../../../baselibs
[remote "origin"]
	url = https://github.com/rwinlib/baselibs
	fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
	remote = origin
	merge = refs/heads/master

Any ideas? Anyone?

from base.

AndreMikulec avatar AndreMikulec commented on September 12, 2024

With the help of the Git Extensons GUI, I went through some git razzle dazzle; I ended up with a branch called "master" at commit bb8cfa2

Therefore, I effectively gave THAT detached HEAD a branch name of "master"

AnonymousUser@ANONYMOUST MINGW64 ~/GitHub/base/baselibs (master)

Next, I did a git pull. . . .

AnonymousUser@ANONYMOUST MINGW64 ~/GitHub/base/baselibs (master)
$ git pull
Updating bb8cfa2..1164444
Fast-forward
 include/pcre2.h       | 978 ++++++++++++++++++++++++++++++++++++++++++++++++++
 lib/i386/libpcre2-8.a | Bin 0 -> 655950 bytes
 lib/x64/libpcre2-8.a  | Bin 0 -> 685000 bytes
 3 files changed, 978 insertions(+)
 create mode 100644 include/pcre2.h
 create mode 100644 lib/i386/libpcre2-8.a
 create mode 100644 lib/x64/libpcre2-8.a

In the Git Extensions GUI, I went back to my own local "GitHub/base"
then I

1. touched readme file (I did not have to do this)
2. staged the changed pcre files (and the readme)
3. git commit
4. git push

O.K.

I am not sure exactly what the shortest method would have been. Most likely someone has an easier method (and more correct method) taking fewer steps. (I would like to read about that solution.)

I am now past the pcre compile step, in the AppVeyor build job. This issue is now closed.

from base.

AndreMikulec avatar AndreMikulec commented on September 12, 2024

Note, for anyone who lands here. I also accidentally acquired a younger version of libcurl. That younger version caused my build to fail. Next, I had to revert that submodule version back: within the submodule folder libcurl, I did a hard rebase, followed by (within the base folder) stage, commit, and push.

from base.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.