Possible bug in "git mv"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I think this might be a bug, albeit a minor one:

If you have a folder containing only files not tracked by git, and you try to use “git mv” to relocate it, then (at least on my machine, running git version 2.6.3), I get this error message:

"fatal: source directory is empty, source=SRCDIR, destination=DESTDIR”

when a better message might be something like:

“no files in directory are under version control, source=SRCDIR, destination=DESTDIR”

David Hirsch
dhirsch@xxxxxx
http://davehirsch.com

-----BEGIN PGP PUBLIC KEY BLOCK-----
Comment: GPGTools - https://gpgtools.org

mQINBFZHkzsBEAC3tDADcJzSuCsnYLkegPmKgiOIq2gPFh1KmyZlfWFEDAZn5pkK
p4GB71kajYiBgVrqjpXBU15qPHh3ErYyp+dL2ouwsrC1ksX3TAj2DTIUMn8OdS4I
MxGhBWUnh7TSlKteW9NOKvlGPzRKiVyQHLuxXohEl/4grDZy/8dNy2A44oWZBEn1
DVBiluAo0ZFXWGfEOCIDqHH8PRUppWSZHfqildRdr9zXra4G7Urwy6CARkEwaRQV
d9PXBWFz/JCaQ59V8TQO9LhZ+79glV3tT8+wxdxmjabsVblBRzoYYJUULcdd+t7l
6wLCbbYehzCHc+5UMJYWjha9svdHZatJJw9PDkPB5XPmOJ1P+2gW2UqVyg6d9T9N
j+Kngn5EsxEniujIVdJ0nPe4+SNYkGTjy54TiMh73tsxjWOTNABL1IyUid9D38Hj
Gb5VNfWnM/5XvS3KoKGi/jmmQAtp5kWD5ANAyMsCLs5+u3fVdG8zKUBULlUdGEHp
EVw86VZJzCWOCMteQC9cjOKL6zTTjzj6SjK5k/uqbuvSO9Vw13QY2mJVIKJB8FxF
PEaRT2j9xQGluy3SogDS6w7iGgFeCV5YS9B6Fe9bUOBXy3XmXuE/5wvG8JdfdkK1
5wRVvzpQRlHLieIYrFDCKjlHxFL9zRSQPg0S9aEerLAKgPaPCU0ge1D4ywARAQAB
tB1EYXZpZCBIaXJzY2ggPGRoaXJzY2hAbWUuY29tPokCQAQTAQoAKgIbAwUJB4Yf
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9j+fv1dQjs7g0bSIz7sCwdLQJfCyERblr8IR
ODRkfoNUPWMISX/TYJKGD7kWZz8dJP883RX8DGf3zNlNuJf0IPTHiamUiIH5wByf
5J9Z02PXzCZzsvpZKLOnPn7O+bRFkGwn96VKVPCSTdw0ub+BIyPGSEXZ6GLEH/ZZ
T1Xd5EJ+i5nchj0MpcuQm6tsf2nyQVz21BVmzjvAuBSuI0xNpIzw/MOboT9tOJvj
tmHbhhgcrDcJFJ0X/1I9Pin6jmIJL0KKWAvFV9TqScLHgaN6SsZHgM9RFE57LhQ3
gv+C/ZnyKvVo66qulPPm6wpFrr4InWJQC5lhVX/ijjMWv+5/3gYCgV9J83HfD5xK
YPtDo+Gm0NHXlNRhsyJ9vjBMgPOc
=pWwJ
-----END PGP PUBLIC KEY BLOCK-----



Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]