Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Git LFS pointers are incorrect in history #54

Closed
disaac opened this issue Feb 14, 2018 · 0 comments · Fixed by #77
Closed

Git LFS pointers are incorrect in history #54

disaac opened this issue Feb 14, 2018 · 0 comments · Fixed by #77

Comments

@disaac
Copy link
Member

disaac commented Feb 14, 2018

Currently if you clone the repository and have git-lfs installed the files located in images/** will display the following error:

git clone git@github.com:unifio/covalence.git

Cloning into 'covalence'...
remote: Counting objects: 1639, done.
remote: Total 1639 (delta 0), reused 0 (delta 0), pack-reused 1639
Receiving objects: 100% (1639/1639), 295.47 KiB | 1.97 MiB/s, done.
Resolving deltas: 100% (943/943), done.
Encountered 2 file(s) that should have been pointers, but weren't:
	images/checkmark.png
	images/prometheus.jpg 

To resolve this issue git lfs has an option for migrating all history and importing the images correctly which can be done in the following way after the clone:

git lfs migrate import --everything --include=images/**

migrate: Sorting commits: ..., done
migrate: Rewriting commits: 100% (149/149), done
  master     	c34fc182b4474397098b32b7b10628373b44feba -> 55e2efd8980f580d3ce03d96ef5711f5bcaa62a2
  0.7.4         a8539daa60ed629756f2d29fe9ed27ae7cee0f1f -> 68b78cc185c309b148b7c70c142b1f5c9b62d70c
  v0.1.3        09f853e22330b49656d78fb0ea2b2607389d5694 -> e6f3fb17866806f0e66241d3f006eeb52a17432e
  v0.2.0        9d4718fe9414aa6e859eb56abc3bbfd8c3962c8d -> 4df1ef2f267e499141ed16ddea8b21f930f6eaf6
  v0.3.0.beta   e6a1b32322c44f044b2c1b4243df4fa6992c18ec -> c02ed5996e8b20bf99ac341a133af158bd25f5ce
  v0.4.0        3786cd7e3d39638c383a92348325c5f5e95d9536 -> ff3070ac7fe0f342f9494450f9c1e8032deefab7
  v0.4.1        3f03be3836fea22fe1033a0b80a7c9c07cd0b590 -> 2f20345e491730f515e59b1f42e8c5e0698e90ea
  v0.4.2        4ca638375ad4d1e9c09858c6daf660da41ff5a4a -> 306b581b287de3da166867e52911603dd4fbb53c
  v0.5.0        a2809a0831d73148c188c0110502e2915b356272 -> 7fa222a8ce82941c5eabc2b2e0ccee6575306961
  v0.5.1        2a575f9075db258981cadbbecca58efc3dba2b28 -> 55e1540d8fc775dcd2409a5d0654893cae0ea2f5
  v0.5.2        1376f16badf254c6d9b95b5840d4398f639f0daf -> f80123e800ef9cae9fb53f9c29a6ddecea285e2c
  v0.5.3        797b02a40e99892f37647fdd16d1c80fa4b9d466 -> c742c9e1397bbee52de00ad0fd9c0896cac7c1d6
  v0.6.0        c73cc8558bf7c04874491c655ea3f5bce4151694 -> bb9bc656b41fbe9cb64130409c2aaec420ffebdb
  v0.6.1        72043f244cc15deef38439c7d2eeed0f3afd7f6f -> 78777252f3804adae9ea57f46fb4815321df1225
  v0.7.0        561ceb6d7c321e303878b7bebef56987e69f882a -> a3366cd6a64cd771a941acf578523be63df1871b
  v0.7.1        cd84a10e3360a9e5ad1d2c77312b99864a37fae4 -> 433b259306065312331ef0f235abbfe46cc7d1e2
  v0.7.2        4d290962522eff5f9669c63622caf37e08d95280 -> 031c82fe11d546721e68296081a78b8b38d74d5c
migrate: Updating refs: ..., done
migrate: checkout: ..., done

This however rewrites the history and will require a force push to github. Adding this to the issue tracker for reference but will leave this open for later. The other alternative is to remove git lfs entirely since there is only two small image files anyway.

disaac added a commit that referenced this issue Aug 1, 2019
fixes #54
* Removing the use of GIT lfs to fix pointer error issue.
@disaac disaac closed this as completed in #77 Aug 1, 2019
disaac added a commit that referenced this issue Aug 1, 2019
* Updating Covalence version after merging fixes #78 #54 Pull Request #77
* Version updated to 0.8.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant