From 797216ed904a2d1ab56839ea037d7c724bda85e3 Mon Sep 17 00:00:00 2001 From: Sawyer X Date: Tue, 16 Nov 2010 01:29:07 +0200 Subject: [PATCH] add postfix / only for types, not values from config --- lib/Git/Flux/Command/init.pm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/Git/Flux/Command/init.pm b/lib/Git/Flux/Command/init.pm index 4c6b77a..3740ec9 100644 --- a/lib/Git/Flux/Command/init.pm +++ b/lib/Git/Flux/Command/init.pm @@ -214,9 +214,7 @@ sub init { if ( $cmd->exit == 1 or $force ) { my $default_suggestion = $repo->run( config => '--get', "gitflux.prefix.$type" - ) || $type; - - $default_suggestion .= '/'; + ) || "$type/"; # version tag has its own default suggestion $type eq 'versiontag' and $default_suggestion = 'v';