fix that only the main branch was considered in git repositories v1.1.1

Thu, 09 Oct 2025 10:58:03 +0200

author
Mike Becker <universe@uap-core.de>
date
Thu, 09 Oct 2025 10:58:03 +0200
changeset 67
7962d771b939
parent 66
16b2313dd96f
child 68
5509c71f34b2

fix that only the main branch was considered in git repositories

fixes #737

CHANGELOG file | annotate | diff | comparison | revisions
Makefile file | annotate | diff | comparison | revisions
src/main.cpp file | annotate | diff | comparison | revisions
--- a/CHANGELOG	Mon Aug 11 20:26:10 2025 +0200
+++ b/CHANGELOG	Thu Oct 09 10:58:03 2025 +0200
@@ -1,3 +1,7 @@
+Version 1.1.1 - 2025-10-09
+
+- Fix that only the main branch was considered in git repositories
+
 Version 1.1.0 - 2025-08-11
 
  - Add highlight for days with tags
--- a/Makefile	Mon Aug 11 20:26:10 2025 +0200
+++ b/Makefile	Thu Oct 09 10:58:03 2025 +0200
@@ -21,7 +21,7 @@
 # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
-VERSION=1.1.0
+VERSION=1.1.1
 
 all: compile FORCE
 
--- a/src/main.cpp	Mon Aug 11 20:26:10 2025 +0200
+++ b/src/main.cpp	Thu Oct 09 10:58:03 2025 +0200
@@ -38,7 +38,7 @@
 
 using namespace std::chrono;
 
-static constexpr auto program_version = "1.1.0";
+static constexpr auto program_version = "1.1.1";
 
 static void print_help() {
     fputs(
@@ -235,7 +235,7 @@
                 }
             } else {
                 proc.setbin(settings.git);
-                if (proc.exec({"pull", "-q"})) {
+                if (proc.exec({"pull", "-q", "--all"})) {
                     fprintf(stderr, "Pulling repo '%s' failed - continue without pull.\n", repo.path.c_str());
                 }
             }
@@ -268,6 +268,7 @@
         } else {
             proc.setbin(settings.git);
             if (proc.exec_log({"log",
+                "--all",
                 "--decorate=short",
                 "--decorate-refs=refs/tags/",
                 "--since", std::format("{0}-01-01 00:00:00", report_year),

mercurial