sparkles git: Replace hardcoded 'master' string

This commit is contained in:
Hylke Bons 2020-06-23 17:18:03 +02:00
parent c1b62da1c5
commit 55c4e5e32e

View file

@ -178,7 +178,7 @@ namespace Sparkles.Git {
string remote_revision = "" + output.Substring (0, 40);
if (!remote_revision.Equals (current_revision)) {
git = new GitCommand (LocalPath, "merge-base " + remote_revision + " master");
git = new GitCommand (LocalPath, "merge-base " + remote_revision + " " + this.branch);
git.StartAndWaitForExit ();
if (git.ExitCode != 0) {