Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

how can I check which commit I have pulled to my local odoo v8 repository?

git
By
gunnar
on 9/27/14, 7:41 AM 1,187 views

... I think that would be good to know whenever there are reports about problems resulting from updates (so you can compare the commit ID's and know whether you are running on the same commit or not)

0
Juan José Scarafía
On 9/29/14, 9:27 AM

Hi gunnar,

Try using "git hist" in the console to see all your commits. There will appear something like this:

* ab6d116 2014-09-17 | change in README (HEAD, master) [Juan José]
* 2f17612 2014-09-10 | Change index.html (style) [Juan José]
* 166b16e 2014-09-10 | Added css stylesheet [Juan José]
* 8e62b14 2014-09-10 | Added README [Juan José]
* a07f958 2014-08-27 | add index [Juan José]
* 88964bc 2014-08-27 | moved hello.txt to lib [Juan José]

Regards,

Juan José - Ing ADHOC

 

sounds good but is not working for me. I get a "git: 'hist' is not a git command. See 'git --help'." error.

gunnar
on 9/29/14, 9:06 PM

oh yes, and the manpage of git does not show any command like 'git hist' or similar. Seems 'git log' might be something to look at

gunnar
on 9/29/14, 9:07 PM

You have to write "git hist" without the ":". Its really a good command to know your commits, try it.

Juan José Scarafía
on 9/30/14, 8:25 AM

yes sure. just git hist ... I really get the error posted git: 'hist' is not a git command. See 'git --help' Also there is no manpage for "man git-hist", neither I can find it under "git help -a". Seems we live on a different git-planets.

gunnar
on 10/1/14, 8:25 AM
0

gunnar

--gunnar--
1153
| 6 7 8
Germany
--gunnar--

born

gunnar
On 9/30/14, 5:42 AM

This is my solution for now:

copy (or write down) the "latest commit"-ID from the github site of my remote origin https://github.com/OCA/OCB/ (branch 8.0)

cd /opt/odoo/odoo-server

git log | grep ["latest commit"-ID]

if I don't get any ouput from running that, I know I have not pulled or fetched/merged the "latest commit" yet

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 9/27/14, 7:41 AM
Seen: 1187 times
Last updated: 3/16/15, 8:10 AM