{"thread":{"id":"54904","subject":"git show submodule","startedAt":"2020-12-30T07:30:16Z","lastAt":"2020-12-30T16:13:53Z","messageCount":2,"participants":["Михаил Павлович Сидоренко","Philippe Blain"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"413164","messageId":"4ddc481f-7d03-e225-13a0-d5fd33456c43@gmail.com","threadId":"54904","inReplyTo":"ab49430e-5a9f-5910-e048-7f07dca8f898@gmail.com","subject":"git show submodule","fromName":"Михаил Павлович Сидоренко","fromEmail":"motherlode.muwa@gmail.com","sentAt":"2020-12-30T07:29:32Z","receivedAt":"2020-12-30T07:30:16Z","isPatch":false,"sender":{"key":"motherlode.muwa@gmail.com","avatar":null},"body":"Hello!\n\ngit show dose not work with file-submodule. Try this series of commands:\n\ncd /tmp/\ngit clone https://github.com/abdes/submodule-docker-dev-workflow.git\ncd submodule-docker-dev-workflow\ngit show ee83dd336f27315d14a7ad6ad934897a61e49623:LICENSE | head -n 1 # \ngood\ngit show ee83dd336f27315d14a7ad6ad934897a61e49623:server # bad\n\nMy output:\n\n$ cd /tmp/\n$ git clone https://github.com/abdes/submodule-docker-dev-workflow.git\nКлонирование в «submodule-docker-dev-workflow»…\nremote: Enumerating objects: 110, done.\nremote: Total 110 (delta 0), reused 0 (delta 0), pack-reused 110\nПолучение объектов: 100% (110/110), 24.76 KiB | 313.00 KiB/s, готово.\nОпределение изменений: 100% (56/56), готово.\n$ cd submodule-docker-dev-workflow\n$ git show ee83dd336f27315d14a7ad6ad934897a61e49623:LICENSE | head -n 1 \n# good\nThe MIT License (MIT)\n$ git show ee83dd336f27315d14a7ad6ad934897a61e49623:server # bad\nfatal: bad object ee83dd336f27315d14a7ad6ad934897a61e49623:server\n\nIt would be convenient for me so that I could see the revision of the \nsubmodule through git show. Without using the git submodule status command.\n\nHappy New Year,\nMikhail Pavlovich Sidorenko.\n"},{"id":"413175","messageId":"5b66521a-9533-63dd-09dc-25785d03f76a@gmail.com","threadId":"54904","inReplyTo":"4ddc481f-7d03-e225-13a0-d5fd33456c43@gmail.com","subject":"Re: git show submodule","fromName":"Philippe Blain","fromEmail":"levraiphilippeblain@gmail.com","sentAt":"2020-12-30T16:13:09Z","receivedAt":"2020-12-30T16:13:53Z","isPatch":false,"sender":{"key":"levraiphilippeblain@gmail.com","avatar":"https://avatars.githubusercontent.com/u/44212482?v=4"},"body":"Hi Mikhail,\n\nLe 2020-12-30 à 02:29, Михаил Павлович Сидоренко a écrit :\n> Hello!\n> \n> git show dose not work with file-submodule. Try this series of commands:\n> \n> cd /tmp/\n> git clone https://github.com/abdes/submodule-docker-dev-workflow.git\n> cd submodule-docker-dev-workflow\n> git show ee83dd336f27315d14a7ad6ad934897a61e49623:LICENSE | head -n 1 # good\n> git show ee83dd336f27315d14a7ad6ad934897a61e49623:server # bad\n> \n> My output:\n> \n> $ cd /tmp/\n> $ git clone https://github.com/abdes/submodule-docker-dev-workflow.git\n> Клонирование в «submodule-docker-dev-workflow»…\n> remote: Enumerating objects: 110, done.\n> remote: Total 110 (delta 0), reused 0 (delta 0), pack-reused 110\n> Получение объектов: 100% (110/110), 24.76 KiB | 313.00 KiB/s, готово.\n> Определение изменений: 100% (56/56), готово.\n> $ cd submodule-docker-dev-workflow\n> $ git show ee83dd336f27315d14a7ad6ad934897a61e49623:LICENSE | head -n 1 # good\n> The MIT License (MIT)\n> $ git show ee83dd336f27315d14a7ad6ad934897a61e49623:server # bad\n> fatal: bad object ee83dd336f27315d14a7ad6ad934897a61e49623:server\n\nI can reproduce that behavior, and it happens even if the submodules\nare initialized (`git submodule update --init`, or `git clone --recurse-submodules`).\n\n> \n> It would be convenient for me so that I could see the revision of the submodule through git show. Without using the git submodule status command.\n\nNote that `git rev-parse ee83dd336f27315d14a7ad6ad934897a61e49623:server`\ndoes work.\n\n> \n> Happy New Year,\n> Mikhail Pavlovich Sidorenko.\n\nCheers,\n\nPhilippe.\n"}]}