git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Ability to automaticaly push tags to remote repositories.

From
Krzysiek Pawlik <krzysiek.pawlik@people.pl>
Date
Mar 30, 2006, 14:18 UTC
Message-ID
<442BE8C2.5000907@people.pl>
In-Reply-To
<442BD562.3030207@people.pl>
Krzysiek Pawlik wrote:
> Comments, suggestions?
Broken when there are no tags. Attached patch fixes it.
-- 
Krzysiek Pawlik (Nelchael)
RLU #322999 GPG Key ID: 0xBC555551



Fix auto-push of tags when there are no tags.

---
commit eff67bafe333c28c238feb614f098b987216ffb0
tree 8758ae4a2eace9c4fdf64ec89c1f983871097a74
parent 6e581cf43ccf7236ea47ac4ba9b51df9cda3c671
author Krzysiek Pawlik <kpawlik@silvermedia.pl> Thu, 30 Mar 2006 16:10:26 +0200
committer Krzysiek Pawlik <kpawlik@silvermedia.pl> Thu, 30 Mar 2006 16:10:26 +0200

 cg-push |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/cg-push b/cg-push
index 865cbd5..40016c1 100755
--- a/cg-push
+++ b/cg-push
@@ -60,7 +60,7 @@ if [ "${auto_push_tags}" = "yes" ]; then
 	if [ ! -d "$_git/cogito-tags-pushed" ]; then
 		mkdir "$_git/cogito-tags-pushed" || die "can't create cache for pushed tags"
 	fi
-	for i in `cg-tag-ls | awk '{print $1}'`; do
+	for i in `cg-tag-ls 2> /dev/null | awk '{print $1}'`; do
 		if [ ! -f "$_git/cogito-tags-pushed/${i}" ]; then
 			echo "Adding ${i} to list of tags to push"
 			tags[${#tags[@]}]="refs/tags/${i}"



!-------------------------------------------------------------flip-
Previous: Krzysiek PawlikNext: Petr Baudis
Message 2 of 3 in “Ability to automaticaly push tags to remote repositories.”
  1. Ability to automaticaly push tags to remote repositories.Krzysiek Pawlik, Mar 30, 2006
  2. Krzysiek PawlikMar 30, 2006
  3. Petr BaudisJun 2, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.