{"id":437,"date":"2009-10-10T17:56:24","date_gmt":"2009-10-10T17:56:24","guid":{"rendered":"http:\/\/nangchang.nes.or.kr\/?p=437"},"modified":"2009-10-10T17:56:24","modified_gmt":"2009-10-10T17:56:24","slug":"git-svn-%ec%82%ac%ec%9a%a9-%ec%8b%9c-%ed%95%9c%ea%b8%80-%ed%8c%8c%ec%9d%bc%eb%aa%85%ec%9d%84-%ea%b0%80%ec%a7%84-%ed%8c%8c%ec%9d%bc-%ec%98%a4%eb%a5%98-%ed%95%b4%ea%b2%b0%ed%95%98%ea%b8%b0","status":"publish","type":"post","link":"https:\/\/nangchang.nes.or.kr\/?p=437","title":{"rendered":"git-svn \uc0ac\uc6a9 \uc2dc \ud55c\uae00 \ud30c\uc77c\uba85\uc744 \uac00\uc9c4 \ud30c\uc77c \uc624\ub958 \ud574\uacb0\ud558\uae30"},"content":{"rendered":"<p>Git\ub97c \uc5ec\uae30 \uc800\uae30\uc5d0 \uc801\uc6a9\ud574 \ubcf4\ub358 \uc5b4\ub290 \ub0a0&#8230;<\/p>\n<p>Subversion \ub808\ud30c\uc9c0\ud1a0\ub9ac\ub97c Git\ub85c \uc4f8 \uae30\ud68c\uac00 \uc0dd\uacbc\ub2e4.<\/p>\n<p>git-svn \uc744 \uc774\uc6a9\ud574\uc11c \ud30c\uc77c\uc744 clone\uc744 \ud574 \uc654\ub294\ub370, \ub9c8\uc9c0\ub9c9\uc5d0 \uac00\uc11c \uba3c\uac00 \uc790\uafb8 \uc2e4\ud328\ud55c\ub2e4.<\/p>\n<p>\uc54c\uace0 \ubcf4\ub2c8 \ud55c\uae00\ub85c \ub41c \uc774\ub984\uc744 \uac00\uc9c4 \ud30c\uc77c\uc744 \uac00\uc838\uc624\ub294 \uacfc\uc815\uc5d0\uc11c \ubb38\uc81c\uac00 \uc0dd\uae30\ub294 \uac83.<\/p>\n<p>\ud55c\uae00\ub85c \ub41c \uc774\ub984\uc744 \uac00\uc9c4 \ud30c\uc77c\uc744 \ucc98\ub9ac\ud560 \ub54c Invalid argument \uac00 \uc5b4\uca4c\uace0 \ud558\ub294\ub370..<\/p>\n<p>\uc544\ubb34\ub798\ub3c4 \uc778\ucf54\ub529 \ubb38\uc81c\uc778\uac70 \uac19\uae30\ub294 \ud55c\ub370&#8230;<\/p>\n<p>\ub2f5\uc774 \uc548\ubcf4\uc778\ub2e4.<\/p>\n<p><\/p>\n<p>\uc5d0 \uc800\uc7a5\ud560 \ub54c \ud30c\uc77c\uba85 \uc778\ucf54\ub529\uc744 \ud56d\uc0c1 UTF-8\ub85c \ud558\ub294\ub370,<\/p>\n<p>git-svn\uc740 \uc774\ub97c \ubb34\uc2dc\ud558\uace0 \ud56d\uc0c1 \uadf8\ub300\ub85c \uc77d\uc5b4\uc624\uae30 \ub54c\ubb38\uc774\uc5c8\ub2e4.<\/p>\n<p>\uadf8\ub798\uc11c \ud30c\uc77c\uc744 \ucc98\ub9ac\ud560\ub54c \ud30c\uc77c\uba85\uc758 \uc778\ucf54\ub529\uc744 UTF-8\uc5d0\uc11c \ub85c\uceec\uc5d0\uc11c \uc4f0\ub294 \uc778\ucf54\ub529\uc73c\ub85c \ubc14\uafb8\uace0,<\/p>\n<p>\ub2e4\uc2dc \ub85c\uceec \uc778\ucf54\ub529\uc5d0\uc11c UTF-8\ub85c \ubcc0\uacbd\ud558\ub294 \uacfc\uc815\uc744 \uac70\uccd0\uc918\uc57c \ud55c\ub2e4.<\/p>\n<p><\/p>\n<p>\uc624\ub9cc\uc0c1 \uc0bd\uc9c8 \ub05d\uc5d0 \uc54c\uc544\ub0b8 \uac83\uc740 git-svn\uc5d0\uc11c\ub9cc \ubc1c\uc0dd\ud558\ub294 \ubb38\uc81c\ub77c\ub294\uac83.<\/p>\n<p>\uc6d0\uc778\uc740 Subversion\uc774 \ub808\ud30c\uc9c0\ud1a0\ub9ac<\/p>\n<p>git-svn\uc740 perl\ub85c \ub418\uc5b4 \uc788\uc73c\uba70, Git \uc124\uce58 \ub514\ub809\ud1a0\ub9ac\uc758 libexec\/git-core\/git-svn \uc774\ub2e4.<\/p>\n<p>\ucca8\ubd80\ud55c \ud328\uce58\ub97c \uc801\uc6a9\ud558\uac70\ub098 \ud30c\uc77c\uc744 \uc5f4\uc5b4\uc11c \ub2e4\uc74c\uacfc \uac19\uc774 \uc218\uc815\ud574 \uc900\ub2e4.<\/p>\n<p style=\"text-align: center;\"><a href=\"\/owner\/entry\/edit\/..\/..\/..\/..\/attach\/1\/1353544293.patch\" title=\"\">01-git-svn-file-name-encoding-processing.patch<\/a><\/p>\n<blockquote><p>&#8230;<br \/>sub git_path {<br \/>&nbsp; &nbsp;&nbsp; my ($self, $path) = @_;<br \/><span style=\"font-weight: bold;\">&nbsp; &nbsp;&nbsp; if (my $enc = Git::config(&#8216;svn.filenameenc&#8217;))<\/span><br style=\"font-weight: bold;\"><span style=\"font-weight: bold;\">&nbsp; &nbsp;&nbsp; {<\/span><br style=\"font-weight: bold;\"><span style=\"font-weight: bold;\">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; require Encode;<\/span><br style=\"font-weight: bold;\"><span style=\"font-weight: bold;\">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; Encode::from_to($path, &#8216;UTF-8&#8217;, $enc);<\/span><br style=\"font-weight: bold;\"><span style=\"font-weight: bold;\">&nbsp; &nbsp;&nbsp; } &nbsp;&nbsp; <\/span><br \/>&nbsp; &nbsp;&nbsp; if ($self-&gt;{path_strip}) {<br \/>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; $path =~ s!$self-&gt;{path_strip}!! or<br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; die &#8220;Failed to strip path &#8216;$path&#8217; ($self-&gt;{path_strip})\\n&#8221;;<br \/>&nbsp;<br \/>&#8230;<\/p>\n<p>&nbsp;sub repo_path {<br \/>&nbsp; &nbsp;&nbsp; my ($self, $path) = @_;<br \/><span style=\"font-weight: bold;\">&nbsp; &nbsp;&nbsp; if (my $enc = Git::config(&#8216;svn.filenameenc&#8217;))<\/span><br style=\"font-weight: bold;\"><span style=\"font-weight: bold;\">&nbsp; &nbsp;&nbsp; {<\/span><br style=\"font-weight: bold;\"><span style=\"font-weight: bold;\">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; require Encode;<\/span><br style=\"font-weight: bold;\"><span style=\"font-weight: bold;\">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; Encode::from_to($path, $enc, &#8216;UTF-8&#8217;);<\/span><br style=\"font-weight: bold;\"><span style=\"font-weight: bold;\">&nbsp; &nbsp;&nbsp; }<\/span><br \/>&nbsp; &nbsp;&nbsp; $self-&gt;{path_prefix}.(defined $path ? $path : &#8221;);<br \/>&nbsp;}<\/p>\n<p>&#8230;<\/p><\/blockquote>\n<p>\uadf8\ub7f0 \ub2e4\uc74c, .gitconifg \ud30c\uc77c\uc5d0\uc11c \ub2e4\uc74c\uacfc \uac19\uc774 \uc778\ucf54\ub529 \uc124\uc815\uc744 \ucd94\uac00\ud574 \uc900\ub2e4.<\/p>\n<p>.gitconfig \ud30c\uc77c\uc740 HOME \ub514\ub809\ud1a0\ub9ac\uc5d0 \uc788\uc73c\uba70, \uc708\ub3c4\uc6b0\uc778 \uacbd\uc6b0\uc5d0\ub294 &#8220;\ub0b4 \ubb38\uc11c&#8221; \ud3f4\ub354\uc5d0 \uc788\ub2e4.<\/p>\n<blockquote>\n<p>[svn]<\/p>\n<p>&nbsp; &nbsp; filenameenc = EUC-KR<\/p>\n<\/blockquote>\n<ol class=\"code\">\n<\/ol>\n<p>\uc774\ub807\uac8c \ud55c \ud6c4 git-svn\uc73c\ub85c clone\uc744 \ud558\uba74 \uc544\ubb34 \ubb38\uc81c\uc5c6\uc774 clone\uc774 \ub41c\ub2e4.<\/p>\n<p>\ucca8\ubd80\ud55c git-svn\uc740 \uc708\ub3c4\uc6b0\uc6a9 Git\uc778 Msysgit 1.6.4 \uc5d0 \ud574\ub2f9 \ud328\uce58\ub97c \uc801\uc6a9\ud55c \ud30c\uc77c\uc774\ub2e4.<\/p>\n<p style=\"text-align: center;\"><a href=\"\/owner\/entry\/edit\/..\/..\/..\/..\/attach\/1\/1080405401.xxx\">git-svn.perl<\/a><\/p>\n<div><\/p>\n<p>[\ucc38\uc870]<\/p>\n<ul>\n<li><a title=\"http:\/\/code.google.com\/p\/msysgit\/issues\/detail?id=159\" href=\"http:\/\/code.google.com\/p\/msysgit\/issues\/detail?id=159\">http:\/\/code.google.com\/p\/msysgit\/issues\/detail?id=159<\/a><\/li>\n<\/ul>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Git\ub97c \uc5ec\uae30 \uc800\uae30\uc5d0 \uc801\uc6a9\ud574 \ubcf4\ub358 \uc5b4\ub290 \ub0a0&#8230; Subversion \ub808\ud30c\uc9c0\ud1a0\ub9ac\ub97c Git\ub85c \uc4f8 \uae30\ud68c\uac00 \uc0dd\uacbc\ub2e4. git-svn \uc744 \uc774\uc6a9\ud574\uc11c \ud30c\uc77c\uc744 clone\uc744 \ud574 \uc654\ub294\ub370, \ub9c8\uc9c0\ub9c9\uc5d0 \uac00\uc11c \uba3c\uac00 \uc790\uafb8 \uc2e4\ud328\ud55c\ub2e4. \uc54c\uace0 \ubcf4\ub2c8 \ud55c\uae00\ub85c \ub41c \uc774\ub984\uc744 \uac00\uc9c4 \ud30c\uc77c\uc744 \uac00\uc838\uc624\ub294 \uacfc\uc815\uc5d0\uc11c \ubb38\uc81c\uac00 \uc0dd\uae30\ub294 \uac83. \ud55c\uae00\ub85c \ub41c \uc774\ub984\uc744 \uac00\uc9c4 \ud30c\uc77c\uc744 \ucc98\ub9ac\ud560 \ub54c Invalid argument \uac00 \uc5b4\uca4c\uace0 \ud558\ub294\ub370.. \uc544\ubb34\ub798\ub3c4 \uc778\ucf54\ub529 \ubb38\uc81c\uc778\uac70 \uac19\uae30\ub294 \ud55c\ub370&#8230; \ub2f5\uc774 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[22,23],"class_list":["post-437","post","type-post","status-publish","format-standard","hentry","category-pogramming","tag-git","tag-git-svn"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/nangchang.nes.or.kr\/index.php?rest_route=\/wp\/v2\/posts\/437","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nangchang.nes.or.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nangchang.nes.or.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nangchang.nes.or.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nangchang.nes.or.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=437"}],"version-history":[{"count":0,"href":"https:\/\/nangchang.nes.or.kr\/index.php?rest_route=\/wp\/v2\/posts\/437\/revisions"}],"wp:attachment":[{"href":"https:\/\/nangchang.nes.or.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=437"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nangchang.nes.or.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=437"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nangchang.nes.or.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=437"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}