Support with finding git objects

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello everyone,

Hope this message finds you. I need your support regarding an issue my team is facing.
We have a code in our SW which shall display the date of the git commit. There is a path in the code that if it is executed on a platform where git is not installed, that this commit date shall be found by looking at:
1.      Reading from HEAD file the commit hash
2.      Searching for this commit hash under .git/objects
The problem we are facing is that sometimes, when the default master branch is updated with the newest commit, this commit will not be found locally, even after doing git pull and so on...
The commit can be found with:
1.      git log
2.      git cat-file -t <commit hash> -> it returns "commit"
3.      git reflog

but the strange thing is that we can neither find it under .git/objects/ nor under .git/objects/pack (although that is the newest commit and shall not be packed).

Can you please provide support by:
1.      telling me it that is an issue or is it expected?
2.      If that is expected, where shall we find this commit object to retrieve the commit message and date from it (without running git commands)?
3.      Or recommending me some other solution

I would appreciate that.

Best regards,

Toufic Ayoub
Software Developer
Hemodynamic Algorithms
Hospital Patient Monitoring
Philips

Philips Medizin Systeme Böblingen GmbH, Hewlett-Packard-Strasse 2, 71034 Boeblingen, Germany
Email toufic.ayoub@xxxxxxxxxxx |www.philips.com/healthcare
Geschäftsführer: Dr. Dieter Haase (Sprecher), Günter Gegner, Sang Do Kim, Florian Kuhn
Registergericht Stuttgart Reg.-Nr. HRB 245187, Sitz der Gesellschaft: Böblingen

Simply switch to printing double-sided and printing less.



________________________________
The information contained in this message may be confidential and legally protected under applicable law. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, forwarding, dissemination, or reproduction of this message is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message.





[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux