Git pull is the standard way to fetch any updates from the remote repository and merge them into the currently active branch.Enjay wrote:Is it just "git pull" (which seems to work)?
Git related Questions
-
randi
- Site Admin
- Posts: 7749
- Joined: Wed Jul 09, 2003 10:30 pm
Re: Git related Questions
-
Graf Zahl
- Lead GZDoom+Raze Developer

- Posts: 49252
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Git related Questions
Well, at least with TortoiseGit there seems to be a discrepancy between pull and fetch. With pull I only seem to update the state of the active branch but with fetch the entire local repo gets updated.
It doesn't seem to be perform pulls across all branches.
It doesn't seem to be perform pulls across all branches.
-
Nash
-

- Posts: 17512
- Joined: Mon Oct 27, 2003 12:07 am
- Location: Kuala Lumpur, Malaysia
Re: Git related Questions
Sorry to bump this. I'm having a lot of trouble getting the Git info for homebrew builds. Git is already in my environment path - I can type git in a CLI from any directory, and moreover, building (G)ZDoom shows the revision name correctly.jpalomo wrote:Whenever I compile ZDoom, the version number always reads <unknown version>. Do I need to do anything extra now that ZDoom switched to Git? I've already installed TortoiseGit and added the directory to VC++ Directories. There are no compiling errors showing up.
However when trying to build projects that are forked off (G)ZDoom, the version info can't be retrieved and it says < unknown version > in the title bar.
The output in Visual Studio says:
Code: Select all
1>------ Build started: Project: revision_check, Configuration: Release Win32 ------
1> fatal: No names found, cannot describe anything.
1> Failed to get commit info: No error
-
Edward-san
- Posts: 1774
- Joined: Sat Oct 17, 2009 9:40 am
Re: Git related Questions
This sounds like due to the fact that maybe your fork doesn't have a proper tag? See this discussion ( revision_check calls 'git describe --tags' , btw). Do you get the same error when compiling directly the original gzdoom repository?
-
VoidMage
- Posts: 165
- Joined: Thu Dec 02, 2010 10:42 am
Re: Git related Questions
IMHO, the way (G)ZDoom picks version name from git is somewhat naive, to put it mildly.
In example, if I'm building from my own branch (which is pretty standard while working with git), it tries to construct something from that branch name, which is usually meaningless.
Though, it's not as if that really matters, so I consider this bikeshedding.
In example, if I'm building from my own branch (which is pretty standard while working with git), it tries to construct something from that branch name, which is usually meaningless.
Though, it's not as if that really matters, so I consider this bikeshedding.
-
Nash
-

- Posts: 17512
- Joined: Mon Oct 27, 2003 12:07 am
- Location: Kuala Lumpur, Malaysia
Re: Git related Questions
Partially solved Solved: when adding remotes to upstream, be sure to NOT disable remote tag fetching (the dialog box seems to suggest disabling it, therefore inexperienced users will have the tendency to click Yes) and then immediately allow it to fetch from the upstream remote. Finally, do a pull from upstream to update your files.
Thanks Edward-san!
Thanks Edward-san!
Last edited by Nash on Tue Oct 27, 2015 4:42 pm, edited 1 time in total.
-
Graf Zahl
- Lead GZDoom+Raze Developer

- Posts: 49252
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Git related Questions
It's indeed a bit strange how it handles tags. This will confuse many users which are new to Git.
-
Nash
-

- Posts: 17512
- Joined: Mon Oct 27, 2003 12:07 am
- Location: Kuala Lumpur, Malaysia
Re: Git related Questions
Okay I spoke too soon.
https://github.com/nashmuhandes/GZDoom-GPL <-- this repo, which has Graf Zahl's GZDoom as an upstream remote, has no problems. If I clone GZDoom-GPL on my hard disk and build it, the Git revision is retrieved correctly - PROVIDED I be sure to allow remote tag fetching etc as detailed in my previous post.
NOW, if I make a completely separate repository and add https://github.com/nashmuhandes/GZDoom-GPL as an upstream remote (NOT GZDoom), the Git version says <unknown version> again. Does not matter if I allow tag fetching or not - it just does not work.
Why?!
https://github.com/nashmuhandes/GZDoom-GPL <-- this repo, which has Graf Zahl's GZDoom as an upstream remote, has no problems. If I clone GZDoom-GPL on my hard disk and build it, the Git revision is retrieved correctly - PROVIDED I be sure to allow remote tag fetching etc as detailed in my previous post.
NOW, if I make a completely separate repository and add https://github.com/nashmuhandes/GZDoom-GPL as an upstream remote (NOT GZDoom), the Git version says <unknown version> again. Does not matter if I allow tag fetching or not - it just does not work.
Why?!
-
_mental_
-

- Posts: 3820
- Joined: Sun Aug 07, 2011 4:32 am
Re: Git related Questions
Because https://github.com/nashmuhandes/GZDoom-GPL doesn't have any tags. I guess you didn't push tags initially.Nash wrote:Okay I spoke too soon.
https://github.com/nashmuhandes/GZDoom-GPL <-- this repo, which has Graf Zahl's GZDoom as an upstream remote, has no problems. If I clone GZDoom-GPL on my hard disk and build it, the Git revision is retrieved correctly - PROVIDED I be sure to allow remote tag fetching etc as detailed in my previous post.
NOW, if I make a completely separate repository and add https://github.com/nashmuhandes/GZDoom-GPL as an upstream remote (NOT GZDoom), the Git version says <unknown version> again. Does not matter if I allow tag fetching or not - it just does not work.
Why?!
-
Edward-san
- Posts: 1774
- Joined: Sat Oct 17, 2009 9:40 am
Re: Git related Questions
Also, imho you should create a tag like GZGPL_1.0pre or similar, pointing to the first commit with your name in your fork, so that your program version string would include information related to your fork instead of GZDoom's.
-
Nash
-

- Posts: 17512
- Joined: Mon Oct 27, 2003 12:07 am
- Location: Kuala Lumpur, Malaysia
Re: Git related Questions
Ahh I see. So quick question, what does the "pre" means? Just trying to understand the naming convention so I can make my tags consistent.
-
_mental_
-

- Posts: 3820
- Joined: Sun Aug 07, 2011 4:32 am
Re: Git related Questions
I think 'pre' designates development builds of version that is not released yet. Something like 'alpha' or 'beta' versions.Nash wrote:Ahh I see. So quick question, what does the "pre" means? Just trying to understand the naming convention so I can make my tags consistent.
-
Nash
-

- Posts: 17512
- Joined: Mon Oct 27, 2003 12:07 am
- Location: Kuala Lumpur, Malaysia
Re: Git related Questions
Finally got around to this, ugh real-life has been crazy. Just dropped in to say thanks for all the help; version name is now baked into the EXE correctly. So bottom line is; your repo must have tags otherwise it will say <unknown version>. Leaving this here for future reference.
-
Gez
-

- Posts: 17946
- Joined: Fri Jul 06, 2007 3:22 pm
Re: Git related Questions
In the GZDoom and ZDoom repositories it's used like this at least. Development builds are labeled 2.1pre because they're not 2.1 yet. It's either that or calling them 2.0post...
-
Nash
-

- Posts: 17512
- Joined: Mon Oct 27, 2003 12:07 am
- Location: Kuala Lumpur, Malaysia
Re: Git related Questions
What is the best way to see a list of branches that only I added into my ZDoom fork? I'm coming back to the ZDoom codebase for a few months now and I've lost track of what branches I've made...